예제 #1
0
        public void ForClass <T>(Action <ClassValidationRules <T> > configuration) where T : class
        {
            var rules = new ClassValidationRules <T>();

            configuration(rules);

            _innerRegistrations.Add(rules);
        }
예제 #2
0
 public FieldValidationExpression(ClassValidationRules <T> parent, Accessor accessor)
 {
     _parent   = parent;
     _accessor = accessor;
 }