FastMoq
Search Results for

    Show / Hide Table of Contents

    Class CapturedLogDiagnosticsEntry

    Describes a captured log entry stored on a Mocker instance.

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

    Constructors

    CapturedLogDiagnosticsEntry(LogLevel, int, string, string?, string?)

    Describes a captured log entry stored on a Mocker instance.

    Declaration
    public CapturedLogDiagnosticsEntry(LogLevel LogLevel, int EventId, string Message, string? ExceptionType, string? ExceptionMessage)
    Parameters
    Type Name Description
    LogLevel LogLevel

    The captured log level.

    int EventId

    The captured event id.

    string Message

    The captured log message.

    string ExceptionType

    The exception type when a matching exception was captured.

    string ExceptionMessage

    The exception message when a matching exception was captured.

    Properties

    EventId

    The captured event id.

    Declaration
    public int EventId { get; init; }
    Property Value
    Type Description
    int

    ExceptionMessage

    The exception message when a matching exception was captured.

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

    ExceptionType

    The exception type when a matching exception was captured.

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

    LogLevel

    The captured log level.

    Declaration
    public LogLevel LogLevel { get; init; }
    Property Value
    Type Description
    LogLevel

    Message

    The captured log message.

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