public void WithdrawMoney() { BankTeller teller = new BankTeller(db); double money = 100; double balance = teller.CheckBalance(5); teller.WithdrawMoney(money, 5); double newBalance = teller.CheckBalance(5); Assert.Equal(balance - money, newBalance); }
public void DepositMoney() { BankTeller teller = new BankTeller(db); double money = 100; double balance = teller.CheckBalance(5); teller.DepositMoney(money, 5); double newBalance = teller.CheckBalance(5); Assert.Equal(money + balance, newBalance); }
public void ShowAccountBalance() { BankTeller teller = new BankTeller(db); int accountId = 6; double balance = teller.CheckBalance(accountId); Assert.Equal(balance, 200); }