public void GetAccountNumber() { string customer = "Jevon Smith"; BankTeller teller = new BankTeller(db); int accountNumber = teller.GetAccountNumber(customer); Assert.Equal(4, accountNumber); }
public void AddAccount() { BankTeller teller = new BankTeller(db); string customerName = "Test Account"; // Add Account int accountNumber = teller.AddAccount(customerName); // Verify Assert.True(accountNumber > -1); // Remove Account as part of clean-up teller.RemoveAccount(customerName); accountNumber = teller.GetAccountNumber(customerName); Assert.Equal(-1, accountNumber); }