Specificaiton interface.
Assembly: Epic.Prelude
Declaration Syntax
C# |
public interface ISpecification<TCandidate> : IEquatable<ISpecification<TCandidate>>, ISpecification, IVisitable where TCandidate : class
Generic Template Parameters
- TCandidate
- The (reference) type of the objects that can satisfy the specification.
Members
All Members | Methods | Properties | |||
Member | Description | |
---|---|---|
And(ISpecification<(Of <<'(TCandidate>)>>)) |
Create a new ISpecification<(Of <(<'TCandidate>)>)> that evaluates the other
only if the current specification is satisfied.
| |
CandidateType |
Gets a Type of objects that can satisfy this ISpecification<(Of <(<'TCandidate>)>)>.
It can be an abstraction or a specialization of TCandidate.
| |
IsSatisfiedBy(TCandidate) |
Check if the TCandidate satisfy the specification.
| |
Negate()()()() |
Create a new ISpecification<(Of <(<'TCandidate>)>)> that is satisfied if and only if the
current specification is not satisfied.
| |
OfType<(Of <<'(TOther>)>>)()()()() |
Create a new ISpecification<(Of <(<'TCandidate>)>)> that is satisfied by all the TOther
that are TCandidate and satisfy the current specification.
| |
Or(ISpecification<(Of <<'(TCandidate>)>>)) |
Create a new ISpecification<(Of <(<'TCandidate>)>)> that evaluates the other
only if the current specification is not satisfied.
|