Class InverseRequestSpecification
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Decorates an IRequestSpecification and returns the opposite result.
public class InverseRequestSpecification : IRequestSpecificationInheritance
object ← InverseRequestSpecification
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
InverseRequestSpecification(IRequestSpecification)
Initializes a new instance of the InverseRequestSpecification by
decorating the supplied specification.
public InverseRequestSpecification(IRequestSpecification specification)Parameters
specification IRequestSpecification
The IRequestSpecification to decorate.
Properties
Specification
Gets the decorated specification.
public IRequestSpecification Specification { get; }Property Value
Remarks
This is the `IRequestSpecification` that will be inverted.
Methods
IsSatisfiedBy(object)
Returns the opposite result as the decorated IRequestSpecification.
public bool IsSatisfiedBy(object request)Parameters
request object
The specimen request.
Returns
true if the decorated IRequestSpecification returns
false; otherwise, false.