Interface ISpecifiedSpecimenCommand<T>
A Command that performs an action on a specimen and knows whether that action matches a given request.
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
[Obsolete("Use ISpecimenCommand instead of Execute, and IRequestSpecification for the IsSatisfiedBy functionality.", true)]
public interface ISpecifiedSpecimenCommand<T> : IRequestSpecification
Type Parameters
Name | Description |
---|---|
T | The type of specimen on which the command acts. |
Methods
| Improve this Doc View SourceExecute(T, ISpecimenContext)
Executes the command on the supplied specimen.
Declaration
void Execute(T specimen, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
T | specimen | The specimen on which the command is executed. |
ISpecimenContext | context | An ISpecimenContext that can be used to resolve other requests. |