Class SeedRequestSpecification

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

A specification that evaluates seeded requests for types against a target type.

public class SeedRequestSpecification : IRequestSpecification

Inheritance

objectSeedRequestSpecification

Implements

IRequestSpecification

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

Type

Methods

IsSatisfiedBy(object)

Evaluates a request for a specimen.

public bool IsSatisfiedBy(object request)

Parameters

request object

The specimen request.

Returns

bool

true if request is a SeededRequest for a type that matches TargetType; otherwise, false.