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