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
TType of instances.
- Inheritance
-
KnownInstancesOf<T>
- Implements
-
IInstancesOf<T>IEnumerable<T>
- 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
instancesIEnumerable<T>The known instances.
KnownInstancesOf(params T[])
Initializes a new instance of the KnownInstancesOf<T> class.
public KnownInstancesOf(params T[] instances)
Parameters
instancesT[]The known instances.
Methods
GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>