FastMoq
Search Results for

    Show / Hide Table of Contents

    Class TrackedMockDiagnosticsEntry

    Describes a tracked mock currently registered in a Mocker instance.

    Inheritance
    object
    TrackedMockDiagnosticsEntry
    Implements
    IEquatable<TrackedMockDiagnosticsEntry>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    IEquatable<T>

    Extension Methods

    ObjectExtensions.RaiseIfNull<T>(T?, string?, string?, int?, string?)
    TestClassExtensions.GetFieldValue<TObject>(TObject, string, TObject?)
    TestClassExtensions.GetField<TObject>(TObject, string)
    TestClassExtensions.GetMemberName<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMember<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMethodValue<TObject>(TObject, string, object?, params object[])
    TestClassExtensions.GetMethod<TObject>(TObject, string)
    TestClassExtensions.GetPropertyValue<TObject>(TObject, string, object?)
    TestClassExtensions.GetProperty<TObject>(TObject, string)
    TestClassExtensions.SetFieldValue<TObject>(TObject, string, object?)
    TestClassExtensions.SetPropertyValue<TObject>(TObject, string, object?)
    MockerHttpMoqExtensions.SetupHttpMessage(object, Func<HttpResponseMessage>, Expression?, Expression?)
    MockerHttpMoqExtensions.SetupMessageAsync<TMock, TReturn>(object, Expression<Func<TMock, Task<TReturn>>>, Func<TReturn>)
    MockerHttpMoqExtensions.SetupMessageProtectedAsync<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessageProtected<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessage<TMock, TReturn>(object, Expression<Func<TMock, TReturn>>, Func<TReturn>)
    TestClassExtensions.GetFieldInfo<TType>(object, string)
    TestClassExtensions.GetFieldValue<T>(object?, FieldInfo)
    TestClassExtensions.GetFieldValue<T, TType>(object, string)
    In this article
    Back to top
    Generated 2026-04-29 03:53 UTC