public ProgramUI(IConsole consoleForAllReadsAndWrites) { _console = consoleForAllReadsAndWrites; BankService = new BankService(); SavingsRepo = new SavingsRepo(); CheckingRepo = new CheckingRepo(); }
public void CheckingAccount_CreateAdditionalCheckingAccountMethod_ShouldSucceed() { //arrange var newCheckingAccount = new CheckingRepo(); //act var expected = 1000m; var actual = newCheckingAccount.CreateCheckingAccount("Jeffries", 1000m, 123456); //assert Assert.AreEqual(expected, actual.Balance); }
public void CheckingAccount_CheckingAccountGetAll_ShouldSucceed() { //arrange var newCheckingAccount = new CheckingRepo(); var checkingOne = new Checking("Jeffries", 1000, 121212); var checkingTwo = new Checking("Sharp", 2000, 221212); var checkingThree = new Checking("Stewart", 3000, 331212); newCheckingAccount.AddAccountToCheckingList(checkingOne); newCheckingAccount.AddAccountToCheckingList(checkingTwo); newCheckingAccount.AddAccountToCheckingList(checkingThree); //act var expected = 3; var actual = newCheckingAccount.GetAllCheckingAccounts().Count; //assert Assert.AreEqual(expected, actual); }