Esempio n. 1
0
 public void Init()
 {
     source = new AccountClass();
     source.Deposit(200m);
     destination = new AccountClass();
     destination.Deposit(150m);
 }
Esempio n. 2
0
        public void TransferFunds(AccountClass destination, decimal amount)
        {
            

            if (balance - amount < minimumBalance)
                throw new InsufficientFundsException();

            destination.Deposit(amount);

            Withdraw(amount);
        }
Esempio n. 3
0
        public void TransferFunds(AccountClass destination, decimal amount)
        {
            if (balance - amount < minimumBalance)
            {
                throw new InsufficientFundsException();
            }

            destination.Deposit(amount);

            Withdraw(amount);
        }