Interface ISpecimenCommand
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Represents a command which can be applied to a specimen.
public interface ISpecimenCommandMethods
Execute(object, ISpecimenContext)
Applies the command to the supplied specimen.
void Execute(object specimen, ISpecimenContext context)Parameters
specimen object
A specimen upon which the command should be applied.
context ISpecimenContext
A context that can be used to create other specimens.
Remarks
Implementations of this interface will often somehow mutate
specimen, e.g. by assigning values to
properties, alternatively pulling those values from
context. Another option is that the the
implementation changes the state of command itself. No matter the
details, since this is a Command, it can be expected to mutate
state somewhere.