FastMoq
Search Results for

    Show / Hide Table of Contents

    Class ObservableLogEntries

    Exposes a read-only, observable view of LogEntry values captured by FastMoq logger interception.

    Inheritance
    object
    ObservableLogEntries
    Implements
    IReadOnlyCollection<LogEntry>
    IEnumerable<LogEntry>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastMoq.Models
    Assembly: FastMoq.Core.dll
    Syntax
    public class ObservableLogEntries : IReadOnlyCollection<LogEntry>, IEnumerable<LogEntry>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

    Constructors

    ObservableLogEntries()

    Initializes an empty observable log entry collection.

    Declaration
    public ObservableLogEntries()

    Properties

    Count

    Gets the number of captured log entries.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Items

    Gets the captured log entries as a read-only observable collection.

    Declaration
    public IReadOnlyCollection<LogEntry> Items { get; }
    Property Value
    Type Description
    IReadOnlyCollection<LogEntry>

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through the captured log entries.

    Declaration
    public IEnumerator<LogEntry> GetEnumerator()
    Returns
    Type Description
    IEnumerator<LogEntry>

    An enumerator over the captured log entries.

    Events

    CollectionChanged

    Occurs when the captured log entry collection changes.

    Declaration
    public event NotifyCollectionChangedEventHandler? CollectionChanged
    Event Type
    Type Description
    NotifyCollectionChangedEventHandler

    PropertyChanged

    Occurs when one of the collection properties, such as Count, changes.

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    INotifyCollectionChanged
    INotifyPropertyChanged

    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