Summary
Base implementation for all
Specifications
with collection length verification.
- Namespace
- FluentSpecification
.Common .Abstractions - Interfaces
- Base Types
- Derived Types
graph BT
Type-->Base0["ComplexSpecification<T>"]
Base0-->Base1["NegatableValidationSpecification<T>"]
Base1-->Base2["ValidationSpecification<T>"]
Base2-->Base3["object"]
Type-.->Interface0["INegatableValidationSpecification<T>"]
Type-.->Interface1["IComplexSpecification<T>"]
Type-.->Interface2["IValidationSpecification<T>"]
Type-.->Interface3["ILinqSpecification<T>"]
Type-.->Interface4["ILinqSpecification"]
click Interface4 "/FluentSpecification/api/FluentSpecification.Abstractions/ILinqSpecification"
Type-.->Interface5["ISpecification<T>"]
Type-.->Interface6["INegatableLinqSpecification<T>"]
Type-.->Interface7["INegatableSpecification<T>"]
Type-.->Interface8["ISpecification"]
click Interface8 "/FluentSpecification/api/FluentSpecification.Abstractions/ISpecification"
Type["BaseLengthSpecification<T>"]
class Type type-node
Derived0["MaxLengthSpecification<T>"]-->Type
click Derived0 "/FluentSpecification/api/FluentSpecification.Common/MaxLengthSpecification_1"
Derived1["MinLengthSpecification<T>"]-->Type
click Derived1 "/FluentSpecification/api/FluentSpecification.Common/MinLengthSpecification_1"
Derived2["LengthSpecification<T>"]-->Type
click Derived2 "/FluentSpecification/api/FluentSpecification.Common/LengthSpecification_1"
Derived3["LengthBetweenSpecification<T>"]-->Type
click Derived3 "/FluentSpecification/api/FluentSpecification.Common/LengthBetweenSpecification_1"
Syntax
[PublicAPI]
public abstract class BaseLengthSpecification<T> : ComplexSpecification<T>,
INegatableValidationSpecification<T>, IComplexSpecification<T>, IValidationSpecification<T>,
ILinqSpecification<T>, ILinqSpecification, ISpecification<T>, INegatableLinqSpecification<T>,
INegatableSpecification<T>, ISpecification
where T : IEnumerable
Attributes
Type | Description |
---|---|
PublicAPI |
Type Parameters
Name | Description |
---|---|
T | Type of System.Collections.IEnumerable candidate. |
Constructors
Name | Summary |
---|---|
Base |
Creates Specification for candidate (collection) length verification.
|
Methods
Name | Value | Summary |
---|---|---|
BuildExpressionBody |
Expression |
Creates special
Expression body when T is non-value or nullable type.
|
Build |
Expression |
Creates special
Expression body when T is value non-nullable type.
|
Build |
Expression |
Builds
Expression with compare of result Count() method.
|
Operators
Name | Value | Summary |
---|---|---|
explicit operator |
Expression |
Inherited from ComplexSpecification
|
implicit operator |
Expression |
Inherited from ComplexSpecification
|
implicit operator |
Func |
Inherited from Validation
|
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
|