Class FiniteSequenceRequest
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Signals that many similar instances are requested.
public class FiniteSequenceRequest : IEquatable<FiniteSequenceRequest>Inheritance
object ← FiniteSequenceRequest
Implements
IEquatable<FiniteSequenceRequest>
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
FiniteSequenceRequest(object, int)
Initializes a new instance of the FiniteSequenceRequest class.
public FiniteSequenceRequest(object request, int count)Parameters
request object
The underlying request to multiply.
count int
The number of instances requested.
Methods
CreateRequests()
Creates many requests from the underlying requests.
public IEnumerable<object> CreateRequests()Returns
A number of similar requests.
Equals(object)
Determines whether the specified Object is equal to this instance.
public override bool Equals(object obj)Parameters
obj object
The Object to compare with this instance.
Returns
true if the specified Object is equal to this instance;
otherwise, false.
Exceptions
The obj parameter is null.
Equals(FiniteSequenceRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(FiniteSequenceRequest other)Parameters
other FiniteSequenceRequest
An object to compare with this object.
Returns
true if other represents the same request with the
same requested count; otherwise, false.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.