Class KnownInstancesOf<T>

Namespace
Cratis.Types
Assembly
Cratis.Fundamentals.dll

Represents an implementation of IInstancesOf<T> for providing exact instances.

public class KnownInstancesOf<T> : IInstancesOf<T>, IEnumerable<T>, IEnumerable where T : class

Type Parameters

T

Type of instances.

Inheritance
KnownInstancesOf<T>
Implements
Inherited Members
Extension Methods

Remarks

Useful for specs - as they need a predictable setup and outcome.

Constructors

KnownInstancesOf()

Initializes a new instance of the KnownInstancesOf<T> class.

public KnownInstancesOf()

KnownInstancesOf(IEnumerable<T>)

Initializes a new instance of the KnownInstancesOf<T> class.

public KnownInstancesOf(IEnumerable<T> instances)

Parameters

instances IEnumerable<T>

The known instances.

KnownInstancesOf(params T[])

Initializes a new instance of the KnownInstancesOf<T> class.

public KnownInstancesOf(params T[] instances)

Parameters

instances T[]

The known instances.

Methods

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>