Class UnspecifiedSpecimenCommand<T>
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Encapsulates an operation without identifying any property or field.
[Obsolete("This class is no longer used, and will be removed in future versions.", true)]
public class UnspecifiedSpecimenCommand<T> : ISpecifiedSpecimenCommand<T>, IRequestSpecificationType Parameters
T
The type of specimen.
Inheritance
object ← UnspecifiedSpecimenCommand<T>
Implements
ISpecifiedSpecimenCommand<T>, IRequestSpecification
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
UnspecifiedSpecimenCommand(Action<T>)
Initializes a new instance of the UnspecifiedSpecimenCommand%601
class.
public UnspecifiedSpecimenCommand(Action<T> action)Parameters
action Action<T>
The action to perform on a specimen.
Properties
Action
Gets the action that can be performed on a specimen.
public Action<T> Action { get; }Property Value
Action<T>
Methods
Execute(T, ISpecimenContext)
Executes Action on the supplied specimen.
public 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. Not
used.
IsSatisfiedBy(object)
Evaluates a request for a specimen.
public bool IsSatisfiedBy(object request)Parameters
request object
The specimen request.