public void CanWarnAboutPayInLimit() { Account account = new Account(); account.AcceptFunds(account.PayInLimit - (account.LowFundsAmount + 10m)); Assert.IsTrue(account.IsApproachingPayInLimit(20m)); }
public void CanReachPayInLimit() { Account account = new Account(); account.AcceptFunds(account.PayInLimit); Assert.IsTrue(account.HasReachedPayInLimit(10m)); }
public void CanNotGoOverdrawn() { Account account = new Account(); account.AcceptFunds(100m); Assert.IsFalse(account.CanWithdrawAmount(200m)); }
public void CanTriggerLowFundsAlert() { Account account = new Account(); account.AcceptFunds(account.LowFundsAmount); Assert.IsTrue(account.WillLeaveLowFunds(10m)); }
public void CanAcceptMoney() { Account account = new Account(); account.AcceptFunds(400m); Assert.IsTrue(account.Balance == 400m); }
public void CanWithdrawFunds() { Account account = new Account(); account.AcceptFunds(400m); account.WithdrawFunds(300m); Assert.IsTrue(account.Balance == 100m); }