Class FastMoqDefaultProviderAttribute
Declares the default FastMoq provider for the current assembly.
Inherited Members
Namespace: FastMoq.Providers
Assembly: FastMoq.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class FastMoqDefaultProviderAttribute : Attribute
Remarks
Use this on test assemblies that intentionally standardize on a provider-specific FastMoq surface.
This selects a provider name that FastMoq can already resolve. It does not register a provider type or alias.
Use FastMoqRegisterProviderAttribute when registration and default selection need to happen together at assembly scope.
This does not replace narrow per-test overrides such as MockingProviderRegistry.Push("moq").
Examples
using FastMoq.Providers;
[assembly: FastMoqDefaultProvider("moq")]
Constructors
FastMoqDefaultProviderAttribute(string)
Initializes a new instance of the FastMoqDefaultProviderAttribute class.
Declaration
public FastMoqDefaultProviderAttribute(string providerName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | providerName | The provider name to treat as the assembly default when that name is already resolvable. |
Properties
ProviderName
Gets the declared provider name.
Declaration
public string ProviderName { get; }
Property Value
| Type | Description |
|---|---|
| string |