Interface IValueObjectValidator<TValue>
Namespace: AdCodicem.ValueObjects
Assembly: AdCodicem.ValueObjects.Abstractions.dll
Declares that a value object enforces a rule its declarative constraints cannot express.
public interface IValueObjectValidator<TValue>
Type Parameters
TValue
Underlying value type.
Remarks
A length is better declared on [ValueObject<T>], bounds through
Methods
ValidateValue(in TValue)
Decides whether a normalized value is acceptable.
public static abstract ValidationResult ValidateValue(in TValue value)
Parameters
value TValue
Normalized value to check.
Returns
Success, or the rule that rejected the value.