SpecificationResult Class

Summary

Contains summary of validation scenarios. See IValidationSpecification<T> and INegatableValidationSpecification<T>.
Namespace
FluentSpecification.Abstractions.Validation
Base Types
  • object
graph BT Type-->Base0["object"] Type["SpecificationResult"] class Type type-node

Syntax

[PublicAPI]
public class SpecificationResult

Remarks

Contains information about Specifications chain and validation errors.

Attributes

Type Description
PublicAPI

Constructors

Name Summary
SpecificationResult() Create "empty" result for successful single Specification.
SpecificationResult(bool, FailedSpecification[]) Create result for single Specification.
SpecificationResult(bool, string, FailedSpecification[]) Create result with trace, for single Specification.
SpecificationResult(bool, string[], FailedSpecification[]) Create result for single Specification with custom errors.
SpecificationResult(bool, string[], string, FailedSpecification[]) Create result with trace, for single Specification with custom errors.
SpecificationResult(int, bool, string, FailedSpecification[]) Create result for combined multiple Specifications.
SpecificationResult(int, bool, string[], string, FailedSpecification[]) Create result for combined multiple Specifications with custom errors.
SpecificationResult(string) Create "empty" result with trace, for successful single Specification.

Properties

Name Value Summary
Errors IReadOnlyList<string>
All failed Specifications errors.
FailedSpecifications IReadOnlyList<FailedSpecification>
List of failed Specifications.
FailedSpecificationsCount int
Count of failed Specifications.
OverallResult bool
Overall result returned by IsSatisfiedBy or IsNotSatisfiedBy method.
TotalSpecificationsCount int
Count of all executed Specifications in chain.
Trace string
Trace message.

Methods

Name Value Summary
ToString() string
Returns a string that represents the current object.
GitHub