FalseSpecification Class

Summary

Checks if candidate is False.
FalseSpecification
ComplexSpecification
NegatableValidationSpecification
ValidationSpecification
object
INegatableValidationSpecification
IComplexSpecification
IValidationSpecification
ILinqSpecification
ISpecification
INegatableLinqSpecification
INegatableSpecification

Syntax

[PublicAPI]
public sealed class FalseSpecification : ComplexSpecification<bool>, 
    INegatableValidationSpecification<bool>, IComplexSpecification<bool>, 
    IValidationSpecification<bool>, ILinqSpecification<bool>, ILinqSpecification, 
    ISpecification<bool>, INegatableLinqSpecification<bool>, INegatableSpecification<bool>, 
    ISpecification

Attributes

Type Description
PublicAPI

Methods

Name Value Summary
BuildExpressionBody(Expression) Expression
Creates special Expression body when T is non-value or nullable type.
CreateFailedMessage(bool) string
Gets validation failed message of Specification for candidate content.
CreateNegationFailedMessage(bool) string
Gets validation negation failed message of Specification for candidate content.
GetParameters() IReadOnlyDictionary<string, object>
Get Specification internal/external parameters, used for candidate verification.

Operators

Name Value Summary
explicit operator Expression(ComplexSpecification<bool>) Expression
Inherited from ComplexSpecification<bool>
implicit operator Expression<Func<bool, bool>>(ComplexSpecification<bool>) Expression<Func<bool, bool>>
Inherited from ComplexSpecification<bool>
implicit operator Func<bool, bool>(ValidationSpecification<bool>) Func<bool, bool>
Inherited from ValidationSpecification<bool>

Extension Methods

Name Value Summary
And<bool, TSpecification>() IComplexSpecification<T>
Creates logical AND Specification with newly created TSpecification.
And<bool>() ICompositeSpecification<T>
Creates composite Specification proxy for final logical AND Specification.
And<bool>(ISpecification<bool>) IComplexSpecification<T>
Creates logical AND Specification.
AndNot<bool, TSpecification>() IComplexSpecification<T>
Creates logical AND Specification with newly created and negated TSpecification.
AndNot<bool>() ICompositeSpecification<T>
Creates composite Specification proxy for final logical AND Specification. Second Specification is negated.
AndNot<bool>(ISpecification<bool>) IComplexSpecification<T>
Creates logical AND Specification with negated other.
AsComplexSpecification<bool>() IComplexSpecification<T>
Converts Specification to complex Specification.
AsExpression<bool>() Expression<Func<T, bool>>
Converts Specification to Linq Expression<T>.
AsPredicate<bool>() Func<T, bool>
Converts Specification to Func<T, TResult> predicate.
Not<bool>() IComplexSpecification<T>
Creates logical NOT Specification.
Or<bool, TSpecification>() IComplexSpecification<T>
Creates logical OR Specification with newly created TSpecification.
Or<bool>() ICompositeSpecification<T>
Creates composite Specification proxy for final logical OR Specification.
Or<bool>(ISpecification<bool>) IComplexSpecification<T>
Creates logical OR Specification.
OrNot<bool, TSpecification>() IComplexSpecification<T>
Creates logical OR Specification with newly created and negated TSpecification.
OrNot<bool>() ICompositeSpecification<T>
Creates composite Specification proxy for final logical OR Specification. Second Specification is negated.
OrNot<bool>(ISpecification<bool>) IComplexSpecification<T>
Creates logical OR Specification with negated other.
WithMessage<bool>(Func<bool, IReadOnlyDictionary<string, object>, string>) IComplexSpecification<T>
Creates validation Specification proxy with specific error message factory where not satisfied by.
WithMessage<bool>(Func<bool, string>) IComplexSpecification<T>
Creates validation Specification proxy with specific error message factory where not satisfied by.
WithMessage<bool>(string) IComplexSpecification<T>
Creates validation Specification proxy with specific error message where not satisfied by.
GitHub