Class FiniteSequenceRequest

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

Signals that many similar instances are requested.

public class FiniteSequenceRequest : IEquatable<FiniteSequenceRequest>

Inheritance

objectFiniteSequenceRequest

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

IEnumerable<object>

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

bool

true if the specified Object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

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

bool

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

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.