CompositeSpecification<T>.

IsSatisfiedBy(T, SpecificationResult) Method

Summary

Merge results from Specifications passed in constructor.

Syntax

[PublicAPI]
public bool IsSatisfiedBy(T candidate, out SpecificationResult result)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
candidate T Candidate object to verification.
result SpecificationResult Contains validation summary of two separate Specifications - errors, types of all executed Specifications and trace message in the style of Boole algebra.

Return Value

Type Description
bool Overall result as composition of two Specifications.

Exceptions

Type Description
System.InvalidOperationException Thrown when merge of results is null.
GitHub