EmailSpecification Class

Summary

Checks if string is valid email address.
graph BT Type-->Base0["ComplexSpecification<string>"] Base0-->Base1["NegatableValidationSpecification<string>"] Base1-->Base2["ValidationSpecification<string>"] Base2-->Base3["object"] Type-.->Interface0["INegatableValidationSpecification<string>"] Type-.->Interface1["IComplexSpecification<string>"] Type-.->Interface2["IValidationSpecification<string>"] Type-.->Interface3["ILinqSpecification<string>"] Type-.->Interface4["ILinqSpecification"] click Interface4 "/FluentSpecification/api/FluentSpecification.Abstractions/ILinqSpecification" Type-.->Interface5["ISpecification<string>"] Type-.->Interface6["INegatableLinqSpecification<string>"] Type-.->Interface7["INegatableSpecification<string>"] Type-.->Interface8["ISpecification"] click Interface8 "/FluentSpecification/api/FluentSpecification.Abstractions/ISpecification" Type["EmailSpecification"] class Type type-node

Syntax

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

Attributes

Type Description
PublicAPI

Constructors

Name Summary
EmailSpecification() Basic constructor.

Methods

Name Value Summary
BuildExpressionBody(Expression) Expression
Creates special Expression body when T is non-value or nullable type.
CreateFailedMessage(string) string
Gets validation failed message of Specification for candidate content.
CreateNegationFailedMessage(string) 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<string>) Expression
Inherited from ComplexSpecification<string>
implicit operator Expression<Func<string, bool>>(ComplexSpecification<string>) Expression<Func<string, bool>>
Inherited from ComplexSpecification<string>
implicit operator Func<string, bool>(ValidationSpecification<string>) Func<string, bool>
Inherited from ValidationSpecification<string>

Extension Methods

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