コード例 #1
0
 public void setUp()
 {
     source_ = new Account();
     source_.Deposit(200.00F);
     destination_ = new Account();
     destination_.Deposit(150.00F);
 }
コード例 #2
0
 public void TransferFunds(Account destination, float amount)
 {
     if (balance_ - amount < minimumBalance_)
         throw new InsufficientFundsException();
     destination.Deposit(amount);
     Withdraw(amount);
 }