Ejemplo n.º 1
0
        public bool AuthorizeLoan(int accountNumber, int loanAmount)
        {
            IBankAccount bankAccount = bank.GetBankAccount(accountNumber);

            // TODO: intermediate checks
            return(bankAccount.HasEnoughCollateral(loanAmount));
        }