예제 #1
0
        public Validator(ValidatorSettings settings = null)
        {
            _expressionValidator = new ClassValidatorExpression();
            _errors = new Dictionary <string, List <string> >();

            _settings = settings ?? new ValidatorSettings();
        }
예제 #2
0
 protected ClassObjectValidatorBase()
 {
     ValidatorExpression = new ClassValidatorExpression();
     _validationExpressionErrorMessageFactory = new ValidationExpressionErrorMessageFactory <T, TMember>();
 }