Class InverseRequestSpecification
Decorates an IRequestSpecification and returns the opposite result.
Inheritance
System.Object
InverseRequestSpecification
Implements
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
public class InverseRequestSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceInverseRequestSpecification(IRequestSpecification)
Initializes a new instance of the InverseRequestSpecification by decorating the supplied specification.
Declaration
public InverseRequestSpecification(IRequestSpecification specification)
Parameters
Type | Name | Description |
---|---|---|
IRequestSpecification | specification | The IRequestSpecification to decorate. |
Properties
| Improve this Doc View SourceSpecification
Gets the decorated specification.
Declaration
public IRequestSpecification Specification { get; }
Property Value
Type | Description |
---|---|
IRequestSpecification |
Remarks
This is the IRequestSpecification that will be inverted.
Methods
| Improve this Doc View SourceIsSatisfiedBy(Object)
Returns the opposite result as the decorated IRequestSpecification.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The specimen request. |
Returns
Type | Description |
---|---|
System.Boolean | true if the decorated IRequestSpecification returns false; otherwise, false. |