Exemple #1
0
        private bool LoanValidator(Loan loan)
        {
            var loanValidator = new LoanValidator();

            loan.ValidationResult = loanValidator.Validate(loan);

            return(loan.ValidationResult.Errors.Any());
        }