FastMoq
Search Results for

    Show / Hide Table of Contents

    Class ConstructorHistory

    Class ConstructorHistory.
    

    Implements the IReadOnlyDictionary<TKey, TValue>

    Inheritance
    object
    ConstructorHistory
    Implements
    ILookup<Type, IHistoryModel>
    IEnumerable<IGrouping<Type, IHistoryModel>>
    IReadOnlyDictionary<Type, ReadOnlyCollection<IHistoryModel>>
    IReadOnlyCollection<KeyValuePair<Type, ReadOnlyCollection<IHistoryModel>>>
    IEnumerable<KeyValuePair<Type, ReadOnlyCollection<IHistoryModel>>>
    IEnumerable<KeyValuePair<Type, IEnumerable<IHistoryModel>>>
    IEnumerable
    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 ConstructorHistory : ILookup<Type, IHistoryModel>, IEnumerable<IGrouping<Type, IHistoryModel>>, IReadOnlyDictionary<Type, ReadOnlyCollection<IHistoryModel>>, IReadOnlyCollection<KeyValuePair<Type, ReadOnlyCollection<IHistoryModel>>>, IEnumerable<KeyValuePair<Type, ReadOnlyCollection<IHistoryModel>>>, IEnumerable<KeyValuePair<Type, IEnumerable<IHistoryModel>>>, IEnumerable

    Constructors

    ConstructorHistory()

    Initializes a new instance of the ConstructorHistory class.

    Declaration
    public ConstructorHistory()

    ConstructorHistory(IDictionary<Type, List<IHistoryModel>>)

    Initializes a new instance of the ConstructorHistory class.

    Declaration
    public ConstructorHistory(IDictionary<Type, List<IHistoryModel>> dictionary)
    Parameters
    Type Name Description
    IDictionary<Type, List<IHistoryModel>> dictionary

    The dictionary.

    Properties

    Count

    Gets the count.

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

    The count.

    this[int]

    Gets the key value pair of IReadOnlyList{IHistoryModel} at the specified index.

    Declaration
    public KeyValuePair<Type, IReadOnlyList<IHistoryModel>> this[int index] { get; }
    Parameters
    Type Name Description
    int index

    The index.

    Property Value
    Type Description
    KeyValuePair<Type, IReadOnlyList<IHistoryModel>>

    System.Collections.Generic.KeyValuePair<System.Type, System.Collections.Generic.IReadOnlyList< FastMoq.Models.IHistoryModel>>.

    this[Type]

    Gets the IEnumerable<T> sequence of values indexed by a specified key.

    Declaration
    public IEnumerable<IHistoryModel> this[Type key] { get; }
    Parameters
    Type Name Description
    Type key

    The key of the desired sequence of values.

    Property Value
    Type Description
    IEnumerable<IHistoryModel>

    The IEnumerable<T> sequence of values indexed by the specified key.

    Keys

    Gets an enumerable collection that contains the keys in the read-only dictionary.

    Declaration
    public IEnumerable<Type> Keys { get; }
    Property Value
    Type Description
    IEnumerable<Type>

    An enumerable collection that contains the keys in the read-only dictionary.

    Values

    Gets the values.

    Declaration
    public IEnumerable<IReadOnlyList<IHistoryModel>> Values { get; }
    Property Value
    Type Description
    IEnumerable<IReadOnlyList<IHistoryModel>>

    The values.

    Methods

    AsEnumerable()

    Converts to list.

    Declaration
    public IEnumerable<KeyValuePair<Type, IEnumerable<IHistoryModel>>> AsEnumerable()
    Returns
    Type Description
    IEnumerable<KeyValuePair<Type, IEnumerable<IHistoryModel>>>

    IEnumerable<T>

    AsLookup()

    Converts to a Lookup.

    Declaration
    public ILookup<Type, IHistoryModel> AsLookup()
    Returns
    Type Description
    ILookup<Type, IHistoryModel>

    ILookup<TKey, TElement>

    AsReadOnlyDictionary()

    Converts to read only dictionary.

    Declaration
    public IReadOnlyDictionary<Type, ReadOnlyCollection<IHistoryModel>> AsReadOnlyDictionary()
    Returns
    Type Description
    IReadOnlyDictionary<Type, ReadOnlyCollection<IHistoryModel>>

    IReadOnlyDictionary<TKey, TValue>

    Contains(Type)

    Determines whether a specified key exists in the ILookup<TKey, TElement>.

    Declaration
    public bool Contains(Type key)
    Parameters
    Type Name Description
    Type key

    The key to search for in the ILookup<TKey, TElement>.

    Returns
    Type Description
    bool

    true if key is in the ILookup<TKey, TElement>; otherwise, false.

    ContainsKey(Type)

    Determines whether the read-only dictionary contains an element that has the specified key.

    Declaration
    public bool ContainsKey(Type key)
    Parameters
    Type Name Description
    Type key

    The key to locate.

    Returns
    Type Description
    bool

    true if the read-only dictionary contains an element that has the specified key; otherwise, false.

    Exceptions
    Type Condition
    ArgumentNullException

    key is null.

    GetConstructor(Type)

    Gets the constructor.

    Declaration
    public ConstructorInfo? GetConstructor(Type type)
    Parameters
    Type Name Description
    Type type

    The type.

    Returns
    Type Description
    ConstructorInfo

    System ofReflection ofConstructorInfo? of the constructor.

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

    Declaration
    public IEnumerator<KeyValuePair<Type, IEnumerable<IHistoryModel>>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<Type, IEnumerable<IHistoryModel>>>

    An enumerator that can be used to iterate through the collection.

    TryGetValue(Type, out ReadOnlyCollection<IHistoryModel>)

    Gets the value that is associated with the specified key.

    Declaration
    public bool TryGetValue(Type key, out ReadOnlyCollection<IHistoryModel> value)
    Parameters
    Type Name Description
    Type key

    The key to locate.

    ReadOnlyCollection<IHistoryModel> value

    When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

    Returns
    Type Description
    bool

    true if the object that implements the IReadOnlyDictionary<TKey, TValue> interface contains an element that has the specified key; otherwise, false.

    Exceptions
    Type Condition
    ArgumentNullException

    key is null.

    Implements

    ILookup<TKey, TElement>
    IEnumerable<T>
    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable<T>
    IEnumerable

    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)

    See Also

    IReadOnlyDictionary<TKey, TValue>
    In this article
    Back to top
    Generated 2026-04-08 12:38 UTC