Summary
Base implementation of
IValidationSpecification<T>.
- Namespace
- FluentSpecification
.Core - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["IValidationSpecification<T>"]
Type-.->Interface1["ISpecification<T>"]
Type-.->Interface2["ISpecification"]
click Interface2 "/FluentSpecification/api/FluentSpecification.Abstractions/ISpecification"
Type["ValidationSpecification<T>"]
class Type type-node
Derived0["ExpressionSpecification<T>"]-->Type
click Derived0 "/FluentSpecification/api/FluentSpecification.Common/ExpressionSpecification_1"
Derived1["NegatableValidationSpecification<T>"]-->Type
click Derived1 "/FluentSpecification/api/FluentSpecification.Core/NegatableValidationSpecification_1"
Syntax
[PublicAPI]
public abstract class ValidationSpecification<T> : IValidationSpecification<T>, ISpecification<T>,
ISpecification
Attributes
| Type | Description |
|---|---|
| PublicAPI |
Type Parameters
| Name | Description |
|---|---|
| T | Type of candidate to verify. |
Methods
| Name | Value | Summary |
|---|---|---|
| CreateFailedMessage |
string |
Gets validation failed message of
Specification for candidate content.
|
| CreateResult |
SpecificationResult |
Creates
SpecificationResult validation object with:
|
| CreateTraceMessage |
string |
Creates trace message based on overall result and candidate content.
|
| GetParameters |
IReadOnlyDictionary |
Get
Specification internal/external parameters, used for candidate verification.
|
| IsSatisfiedBy |
bool |
Checks if
Specification is satisfied by candidate object.
|
| IsSatisfiedBy |
bool |
Checks if
Specification is satisfied by candidate object.
Returns validation result no matter is satisfied or not.
|
Operators
| Name | Value | Summary |
|---|---|---|
| implicit operator |
Func |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| And |
I |
Creates logical AND
Specification with newly created TSpecification.
From SpecificationCore
|
| And |
I |
Creates composite
Specification proxy for final logical AND Specification.
From SpecificationCore
|
| And |
I |
Creates logical AND
Specification.
From SpecificationCore
|
| AndNot |
I |
Creates logical AND
Specification with newly created and negated TSpecification.
From SpecificationCore
|
| AndNot |
I |
Creates composite
Specification proxy for final logical AND Specification.
Second Specification is negated.
From SpecificationCore
|
| AndNot |
I |
Creates logical AND
Specification with negated other.
From SpecificationCore
|
| As |
I |
Converts
Specification to complex Specification.
From SpecificationCore
|
| AsExpression |
Expression |
Converts
Specification to Linq Expression<T>.
From SpecificationCore
|
| AsPredicate |
Func |
Converts
Specification to Func<T, TResult> predicate.
From SpecificationCore
|
| Not |
I |
Creates logical NOT
Specification.
From SpecificationCore
|
| Or |
I |
Creates logical OR
Specification with newly created TSpecification.
From SpecificationCore
|
| Or |
I |
Creates composite
Specification proxy for final logical OR Specification.
From SpecificationCore
|
| Or |
I |
Creates logical OR
Specification.
From SpecificationCore
|
| OrNot |
I |
Creates logical OR
Specification with newly created and negated TSpecification.
From SpecificationCore
|
| OrNot |
I |
Creates composite
Specification proxy for final logical OR Specification.
Second Specification is negated.
From SpecificationCore
|
| OrNot |
I |
Creates logical OR
Specification with negated other.
From SpecificationCore
|
| WithMessage |
I |
Creates validation
Specification proxy with specific error message factory where not satisfied by.
From SpecificationCore
|
| WithMessage |
I |
Creates validation
Specification proxy with specific error message factory where not satisfied by.
From SpecificationCore
|
| WithMessage |
I |
Creates validation
Specification proxy with specific error message where not satisfied by.
From SpecificationCore
|

