public void TransferFunds(Account destination, float amount)
 {
     if (balance - amount < minimumBalance)
         throw new InsufficientFundsException();
     destination.Deposit(amount);
     Withdraw(amount);
 }
 public void TestDeposit()
 {
     Account source = new Account();
       source.Deposit(200.00F);
       Assert.AreEqual(200.00F, source.Balance);
       source.Deposit(200.00F);
       Assert.AreEqual(400.00F, source.Balance);
 }
        public void TestTransferFunds()
        {
            Account source = new Account();
            source.Deposit(200.00F);
            Account destination = new Account();
            destination.Deposit(150.00F);

            source.TransferFunds(destination, 100.00F);
            Assert.AreEqual(250.00F, destination.Balance);
            Assert.AreEqual(100.00F, source.Balance);
        }
 public void TestWithdraw()
 {
     Account source = new Account();
       source.Withdraw(2.00F);
       Assert.AreEqual(-2.00F, source.Balance);
 }
 public void TestReturnMinumumBalance()
 {
     Account source = new Account();
       Assert.AreEqual(10.00F, source.MinimumBalance);
 }