FailedSpecification Class

Summary

Contains flatten information about failed Specification in SpecificationResult. All composed Specifications must be split into separate FailedSpecification objects.
Namespace
FluentSpecification.Abstractions.Validation
Base Types
  • object
graph BT Type-->Base0["object"] Type["FailedSpecification"] class Type type-node

Syntax

[PublicAPI]
public class FailedSpecification

Remarks

Normally FailedSpecification means NOT satisfied ISpecification<T> or satisfied INegatableSpecification<T>

Attributes

Type Description
PublicAPI

Constructors

Name Summary
FailedSpecification(Type, IReadOnlyDictionary<string, object>, object, string[]) Create complex FailedSpecification object.
FailedSpecification(Type, object, string[]) Create standard FailedSpecification object.

Properties

Name Value Summary
Candidate object
Used candidate.
Errors IReadOnlyList<string>
Errors generated by Specification.
Parameters IReadOnlyDictionary<string, object>
Specification parameters used during candidate verification.
SpecificationType Type
Type of failed Specification.
GitHub