INegatableValidationSpecification<T> Interface

Summary

Base negation of generic Specification interface for single objects validation scenarios.
graph BT Type-.->Interface0["INegatableSpecification<T>"] Type-.->Interface1["ISpecification"] click Interface1 "/FluentSpecification/api/FluentSpecification.Abstractions/ISpecification" Type["INegatableValidationSpecification<T>"] class Type type-node Implementing0["CreditCardSpecification"]-.->Type click Implementing0 "/FluentSpecification/api/FluentSpecification.Common/CreditCardSpecification" Implementing1["MaxLengthSpecification<T>"]-.->Type click Implementing1 "/FluentSpecification/api/FluentSpecification.Common/MaxLengthSpecification_1" Implementing2["ExclusiveBetweenSpecification<T>"]-.->Type click Implementing2 "/FluentSpecification/api/FluentSpecification.Common/ExclusiveBetweenSpecification_1" Implementing3["BaseLengthSpecification<T>"]-.->Type click Implementing3 "/FluentSpecification/api/FluentSpecification.Common.Abstractions/BaseLengthSpecification_1" Implementing4["ContainsSpecification"]-.->Type click Implementing4 "/FluentSpecification/api/FluentSpecification.Common/ContainsSpecification" Implementing5["LessThanSpecification<T>"]-.->Type click Implementing5 "/FluentSpecification/api/FluentSpecification.Common/LessThanSpecification_1" Implementing6["BaseGreaterCompareSpecification<T>"]-.->Type click Implementing6 "/FluentSpecification/api/FluentSpecification.Common.Abstractions/BaseGreaterCompareSpecification_1" Implementing7["BaseBetweenSpecification<T>"]-.->Type click Implementing7 "/FluentSpecification/api/FluentSpecification.Common.Abstractions/BaseBetweenSpecification_1" Implementing8["LessThanOrEqualSpecification<T>"]-.->Type click Implementing8 "/FluentSpecification/api/FluentSpecification.Common/LessThanOrEqualSpecification_1" Implementing9["TrueSpecification"]-.->Type click Implementing9 "/FluentSpecification/api/FluentSpecification.Common/TrueSpecification" Implementing10["NegatableValidationSpecification<T>"]-.->Type click Implementing10 "/FluentSpecification/api/FluentSpecification.Core/NegatableValidationSpecification_1" Implementing11["MatchSpecification"]-.->Type click Implementing11 "/FluentSpecification/api/FluentSpecification.Common/MatchSpecification" Implementing12["BaseCompareSpecification<T>"]-.->Type click Implementing12 "/FluentSpecification/api/FluentSpecification.Common.Abstractions/BaseCompareSpecification_1" Implementing13["FalseSpecification"]-.->Type click Implementing13 "/FluentSpecification/api/FluentSpecification.Common/FalseSpecification" Implementing14["NullSpecification<T>"]-.->Type click Implementing14 "/FluentSpecification/api/FluentSpecification.Common/NullSpecification_1" Implementing15["EmailSpecification"]-.->Type click Implementing15 "/FluentSpecification/api/FluentSpecification.Common/EmailSpecification" Implementing16["ComplexSpecification<T>"]-.->Type click Implementing16 "/FluentSpecification/api/FluentSpecification.Core/ComplexSpecification_1" Implementing17["EqualSpecification<T>"]-.->Type click Implementing17 "/FluentSpecification/api/FluentSpecification.Common/EqualSpecification_1" Implementing18["GreaterThanSpecification<T>"]-.->Type click Implementing18 "/FluentSpecification/api/FluentSpecification.Common/GreaterThanSpecification_1" Implementing19["MinLengthSpecification<T>"]-.->Type click Implementing19 "/FluentSpecification/api/FluentSpecification.Common/MinLengthSpecification_1" Implementing20["IsTypeSpecification<T>"]-.->Type click Implementing20 "/FluentSpecification/api/FluentSpecification.Common/IsTypeSpecification_1" Implementing21["InclusiveBetweenSpecification<T>"]-.->Type click Implementing21 "/FluentSpecification/api/FluentSpecification.Common/InclusiveBetweenSpecification_1" Implementing22["GreaterThanOrEqualSpecification<T>"]-.->Type click Implementing22 "/FluentSpecification/api/FluentSpecification.Common/GreaterThanOrEqualSpecification_1" Implementing23["BaseLessCompareSpecification<T>"]-.->Type click Implementing23 "/FluentSpecification/api/FluentSpecification.Common.Abstractions/BaseLessCompareSpecification_1" Implementing24["LengthSpecification<T>"]-.->Type click Implementing24 "/FluentSpecification/api/FluentSpecification.Common/LengthSpecification_1" Implementing25["EmptySpecification<T>"]-.->Type click Implementing25 "/FluentSpecification/api/FluentSpecification.Common/EmptySpecification_1" Implementing26["LengthBetweenSpecification<T>"]-.->Type click Implementing26 "/FluentSpecification/api/FluentSpecification.Common/LengthBetweenSpecification_1" Implementing27["ContainsSpecification<T, TType>"]-.->Type click Implementing27 "/FluentSpecification/api/FluentSpecification.Common/ContainsSpecification_2"

Syntax

[PublicAPI]
public interface INegatableValidationSpecification<in T> : INegatableSpecification<in T>, 
    ISpecification

Remarks

Default "handler" for all kinds of negation generic Specifications for objects validation.

Can be used for negation check, where single objects needs verification with errors prepared for e.g. UI, like DTOs.

Attributes

Type Description
PublicAPI

Type Parameters

Name Description
T Type of candidate to verify.

Methods

Name Value Summary
IsNotSatisfiedBy(T, SpecificationResult) bool
Checks if Specification is NOT satisfied by candidate object. Returns validation result no matter is satisfied or not.
GitHub