Class OrRequestSpecification
A boolean 'Or' Composite IRequestSpecification.
Inheritance
System.Object
OrRequestSpecification
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 OrRequestSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceOrRequestSpecification(IRequestSpecification[])
Initializes a new instance of the OrRequestSpecification class with the supplied specifications.
Declaration
public OrRequestSpecification(params IRequestSpecification[] specifications)
Parameters
Type | Name | Description |
---|---|---|
IRequestSpecification[] | specifications | An array of IRequestSpecification. |
OrRequestSpecification(IEnumerable<IRequestSpecification>)
Initializes a new instance of the OrRequestSpecification class with the supplied specifications.
Declaration
public OrRequestSpecification(IEnumerable<IRequestSpecification> specifications)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IRequestSpecification> | specifications | A sequence of IRequestSpecification. |
Properties
| Improve this Doc View SourceSpecifications
Gets the decorated specifications.
Declaration
public IEnumerable<IRequestSpecification> Specifications { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IRequestSpecification> |
Methods
| Improve this Doc View SourceIsSatisfiedBy(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 | true if |