public void CallsMethodOnRegisteredValidatorsCorrectly() { var compositeValidator = new CompositeValidator(); TestCompositeValidator(compositeValidator, validator => validator.AfterValidateFields(null, null), () => compositeValidator.AfterValidateFields(null, null)); }
public void ThrowsExceptionIfAnyValidatorDoes() { var compositeValidator = new CompositeValidator(); TestCompositeRethrowException <ArgumentNullException>(compositeValidator, validator => validator.AfterValidateFields(null, null), () => compositeValidator.AfterValidateFields(null, null)); }