Summary
Checks if string is valid credit card number.
- Namespace
- FluentSpecification
.Common - Interfaces
-
- I
Negatable Validation Specification <string> - I
Complex Specification <string> - I
Validation Specification <string> - ILinqSpecification
<string> - ILinqSpecification
- ISpecification
<string> - I
Negatable Linq Specification <string> - I
Negatable Specification <string> - ISpecification
- I
- Base Types
-
- object
- Validation
Specification <string> - Negatable
Validation Specification <string> - ComplexSpecification
<string>
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["CreditCardSpecification"]
class Type type-node
Syntax
[PublicAPI]
public sealed class CreditCardSpecification : 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 |
---|---|
Credit |
Basic constructor. |
Methods
Name | Value | Summary |
---|---|---|
BuildExpressionBody |
Expression |
Creates special
Expression body when T is non-value or nullable type.
|
CreateFailedMessage |
string |
Gets validation failed message of
Specification for candidate content.
|
Create |
string |
Gets validation negation failed message of
Specification for candidate content.
|
GetParameters |
IReadOnlyDictionary |
Get
Specification internal/external parameters, used for candidate verification.
|
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
|