Interface ISpecifiedSpecimenCommand<T>

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

A Command that performs an action on a specimen and knows whether that action matches a given request.

[Obsolete("Use ISpecimenCommand instead of Execute, and IRequestSpecification for the IsSatisfiedBy functionality.", true)]
public interface ISpecifiedSpecimenCommand<T> : IRequestSpecification

Type Parameters

T

The type of specimen on which the command acts.

Implements

IRequestSpecification

Methods

Execute(T, ISpecimenContext)

Executes the command on the supplied specimen.

void Execute(T specimen, ISpecimenContext context)

Parameters

specimen T

The specimen on which the command is executed.

context ISpecimenContext

An ISpecimenContext that can be used to resolve other requests.