public void Init() { source = new AccountClass(); source.Deposit(200m); destination = new AccountClass(); destination.Deposit(150m); }
public void TransferFunds(AccountClass destination, decimal amount) { if (balance - amount < minimumBalance) throw new InsufficientFundsException(); destination.Deposit(amount); Withdraw(amount); }
public void TransferFunds(AccountClass destination, decimal amount) { if (balance - amount < minimumBalance) { throw new InsufficientFundsException(); } destination.Deposit(amount); Withdraw(amount); }