public void CanGetAccountBalanceByAccountId() { DataHelper.NewDb(); var service = new RentalsService(); Assert.AreEqual(DataHelper.GetAccountBalance(1), service.GetAccountBalance(1)); Assert.AreEqual(DataHelper.GetAccountBalance(2), service.GetAccountBalance(2)); Assert.AreEqual(DataHelper.GetAccountBalance(3), service.GetAccountBalance(3)); }
public void GettingBalanceOfNonExistentAccountReturnsZero() { DataHelper.NewDb(); var service = new RentalsService(); Assert.AreEqual(0.00m, service.GetAccountBalance(999)); }