Class SeedRequestSpecification
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
A specification that evaluates seeded requests for types against a target type.
public class SeedRequestSpecification : IRequestSpecificationInheritance
object ← SeedRequestSpecification
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SeedRequestSpecification(Type)
Initializes a new instance of the SeedRequestSpecification class.
public SeedRequestSpecification(Type type)Parameters
type Type
The target type.
Properties
TargetType
Gets the type targeted by this IRequestSpecification.
public Type TargetType { get; }Property Value
Methods
IsSatisfiedBy(object)
Evaluates a request for a specimen.
public bool IsSatisfiedBy(object request)Parameters
request object
The specimen request.
Returns
true if request is a SeededRequest
for a type that matches TargetType; otherwise, false.