Class TrackedMockDiagnosticsEntry
Describes a tracked mock currently registered in a Mocker instance.
Implements
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Core.dll
Syntax
public sealed record TrackedMockDiagnosticsEntry : IEquatable<TrackedMockDiagnosticsEntry>
Constructors
TrackedMockDiagnosticsEntry(string, string?, string, string, bool)
Describes a tracked mock currently registered in a Mocker instance.
Declaration
public TrackedMockDiagnosticsEntry(string ServiceType, string? ServiceKey, string MockedType, string NativeMockType, bool NonPublic)
Parameters
| Type | Name | Description |
|---|---|---|
| string | ServiceType | The requested service type that owns the tracked mock. |
| string | ServiceKey | The formatted DI-style service key when the tracked mock is keyed. |
| string | MockedType | The mocked type exposed by the provider abstraction. |
| string | NativeMockType | The underlying provider-native mock type. |
| bool | NonPublic | True when the tracked mock allows non-public construction. |
Properties
MockedType
The mocked type exposed by the provider abstraction.
Declaration
public string MockedType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
NativeMockType
The underlying provider-native mock type.
Declaration
public string NativeMockType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
NonPublic
True when the tracked mock allows non-public construction.
Declaration
public bool NonPublic { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
ServiceKey
The formatted DI-style service key when the tracked mock is keyed.
Declaration
public string? ServiceKey { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
ServiceType
The requested service type that owns the tracked mock.
Declaration
public string ServiceType { get; init; }
Property Value
| Type | Description |
|---|---|
| string |