Class MockerPolicyOptions
Groups the default policy settings that shape how a Mocker resolves built-ins and creates mocks.
Per-call options may still override the relevant creation or invocation behavior where supported.
Inheritance
MockerPolicyOptions
Assembly: FastMoq.Core.dll
Syntax
public sealed class MockerPolicyOptions
Properties
DefaultFallbackToNonPublicConstructors
Declaration
public bool DefaultFallbackToNonPublicConstructors { get; set; }
Property Value
DefaultFallbackToNonPublicMethods
Declaration
public bool DefaultFallbackToNonPublicMethods { get; set; }
Property Value
DefaultStrictMockCreation
Controls the default strict-vs-loose behavior for provider-backed mock creation paths.
When not set, FastMoq falls back to FailOnUnconfigured.
This applies to provider-backed and legacy mock creation helpers, but not to the optional database helper package's
DbContext-specific mock creation path, which stays on the supported DbContext helper behavior.
Declaration
public bool? DefaultStrictMockCreation { get; set; }
Property Value
EnabledBuiltInTypeResolutions
Declaration
public BuiltInTypeResolutionFlags EnabledBuiltInTypeResolutions { get; set; }
Property Value
Extension Methods