protected ValidationStep AddValidationStep(InternalValidationStep <T> validationStep) { if (validationStep == null) { return(null); } _validationSteps.Add(validationStep); return(validationStep); }
protected ValidationStep AddValidationStep(Func <T, ValidationResult> validateFunction) { if (validateFunction == null) { return(null); } var newStep = InternalValidationStep <T> .Create(validateFunction); _validationSteps.Add(newStep); return(newStep); }