Class SpecifiedNullCommand<T, TProperty>
A no-op that identifies a certain property or field.
Inheritance
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
[Obsolete("This class is no longer used, and will be removed in future versions.", true)]
public class SpecifiedNullCommand<T, TProperty> : ISpecifiedSpecimenCommand<T>, IRequestSpecification
Type Parameters
Name | Description |
---|---|
T | The type of specimen. |
TProperty | The type of property or field. |
Remarks
This class can be used to reserve an identified property or field without doing anything with it.
Constructors
| Improve this Doc View SourceSpecifiedNullCommand(Expression<Func<T, TProperty>>)
Initializes a new instance of the SpecifiedNullCommand<T, TProperty> class with the supplied property picker expression.
Declaration
public SpecifiedNullCommand(Expression<Func<T, TProperty>> propertyPicker)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<T, TProperty>> | propertyPicker | An expression that identifies a property or field. |
Properties
| Improve this Doc View SourceMember
Gets the member identified by the expression supplied through the constructor.
Declaration
public MemberInfo Member { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MemberInfo |
Methods
| Improve this Doc View SourceExecute(T, ISpecimenContext)
Does nothing.
Declaration
public void Execute(T specimen, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
T | specimen | A specimen. |
ISpecimenContext | context | An ISpecimenContext. |
IsSatisfiedBy(Object)
Evaluates whether a request matches the property or field reserved by this command.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The specimen request. |
Returns
Type | Description |
---|---|
System.Boolean | true if |