public IValidatorResult ValidatorProcessing(IValidatorOptions options) { throw new NotImplementedException(); }
/// <summary> /// Alternative constructor for Validation Contract, should be used if contract already exists to pass informations. /// It's not recommended to use this method outside Extension methods, utilize constructor with Expression instead. /// </summary> /// <param name="memberName">Name of the member coming from a existent contract</param> /// <param name="memberValue">Value of the member coming from a existent contract</param> /// <param name="errors">Notifications to be passed to this contract, coming from a existent contract</param> /// <param name="options">Options of this Contract. This value should come from previous existent contract. If null, Validator will use default configurations</param> public ValidationContract(string memberName, TProperty memberValue, IReadOnlyList <ValidationError> errors = null, IValidatorOptions options = null) { _errors = errors?.ToList() ?? new List <ValidationError>(); MemberName = memberName; MemberValue = memberValue; AddValidatorOptions(options ?? GetDefaultOptions()); }
/// <summary> /// Configure Validator Options /// </summary> /// <param name="options">The options to configure object</param> /// <returns>Validation Contract with default validator options</returns> public ValidationContract <T, TProperty> AddValidatorOptions(IValidatorOptions options) { Options = options; return(this); }
public IValidatorResult ValidatorProcessing(IValidatorOptions options) { throw new NotImplementedException(); }