Beispiel #1
0
 protected ValidationStep AddValidationStep(InternalValidationStep <T> validationStep)
 {
     if (validationStep == null)
     {
         return(null);
     }
     _validationSteps.Add(validationStep);
     return(validationStep);
 }
Beispiel #2
0
        protected ValidationStep AddValidationStep(Func <T, ValidationResult> validateFunction)
        {
            if (validateFunction == null)
            {
                return(null);
            }

            var newStep = InternalValidationStep <T> .Create(validateFunction);

            _validationSteps.Add(newStep);
            return(newStep);
        }