ValidationSpecification<T>.

CreateResult(T, bool) Method

Summary

Creates SpecificationResult validation object with:

Syntax

[PublicAPI]
[NotNull]
protected virtual SpecificationResult CreateResult(T candidate, bool isSatisfiedBy)

Remarks

Result contains:
  • trace message
  • FailedSpecification
  • error message
  • parameters

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
candidate T Candidate object to verification.
isSatisfiedBy bool Overall result is Specification satisfied by candidate.

Return Value

Type Description
SpecificationResult Validation object based on overall result and candidate content.
GitHub