FastMoq
Search Results for

    Show / Hide Table of Contents

    Class InstanceRegistrationDiagnosticsEntry

    Describes an instance registration currently configured on a Mocker instance.

    Inheritance
    object
    InstanceRegistrationDiagnosticsEntry
    Implements
    IEquatable<InstanceRegistrationDiagnosticsEntry>
    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 InstanceRegistrationDiagnosticsEntry : IEquatable<InstanceRegistrationDiagnosticsEntry>

    Constructors

    InstanceRegistrationDiagnosticsEntry(string, string?, string, bool, IReadOnlyList<string>)

    Describes an instance registration currently configured on a Mocker instance.

    Declaration
    public InstanceRegistrationDiagnosticsEntry(string RequestedType, string? ServiceKey, string InstanceType, bool HasFactory, IReadOnlyList<string> ArgumentSummaries)
    Parameters
    Type Name Description
    string RequestedType

    The requested service type that resolved through an instance registration.

    string ServiceKey

    The formatted DI-style service key when the registration is keyed.

    string InstanceType

    The concrete instance type produced by the registration.

    bool HasFactory

    True when the registration used a factory delegate.

    IReadOnlyList<string> ArgumentSummaries

    A summary of any stored registration arguments.

    Properties

    ArgumentSummaries

    A summary of any stored registration arguments.

    Declaration
    public IReadOnlyList<string> ArgumentSummaries { get; init; }
    Property Value
    Type Description
    IReadOnlyList<string>

    HasFactory

    True when the registration used a factory delegate.

    Declaration
    public bool HasFactory { get; init; }
    Property Value
    Type Description
    bool

    InstanceType

    The concrete instance type produced by the registration.

    Declaration
    public string InstanceType { get; init; }
    Property Value
    Type Description
    string

    RequestedType

    The requested service type that resolved through an instance registration.

    Declaration
    public string RequestedType { get; init; }
    Property Value
    Type Description
    string

    ServiceKey

    The formatted DI-style service key when the registration is keyed.

    Declaration
    public string? ServiceKey { 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