Class MockRequestOptions
Options that control tracked mock retrieval and creation.
Inherited Members
Namespace: FastMoq
Assembly: FastMoq.Core.dll
Syntax
public sealed class MockRequestOptions
Properties
AllowNonPublicConstructors
Indicates whether non-public constructors may be used when creating a concrete mock. When not set, FastMoq uses the current mock-request default for the active Mocker.
Declaration
public bool? AllowNonPublicConstructors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
ConstructorArgs
Optional constructor arguments for concrete mock creation.
Declaration
public object?[] ConstructorArgs { get; set; }
Property Value
| Type | Description |
|---|---|
| object[] |
ServiceKey
Optional DI-style service key used for keyed registrations or keyed tracked mocks.
Declaration
public object? ServiceKey { get; set; }
Property Value
| Type | Description |
|---|---|
| object |