public PropertyValidatorError(string propertyName, PropertyValidatorReason reason) : this(propertyName, reason, null) { }
public PropertyValidatorError(string propertyName, PropertyValidatorReason reason, string errorMessage) { ProperyName = propertyName; Reason = reason; ErrorMessage = errorMessage; }
public static FluentValidation.IRuleBuilderOptions <T, TProperty> SetState <T, TProperty>(this FluentValidation.IRuleBuilderOptions <T, TProperty> rule, PropertyValidatorReason reason) { return(rule.WithState(x => reason)); }