public void WithReversal50ShouldCreateANegativeCreditOf50() { var subject = new CreditLedgerTransaction(); LedgerTransaction result = subject.WithReversal(50); Assert.AreEqual(-50M, result.Credit); }
public void WithReversal50ShouldReturnSameObjectForChaining() { var subject = new CreditLedgerTransaction(); LedgerTransaction result = subject.WithReversal(50); Assert.AreSame(subject, result); }
public void WithReversal50ShouldAZeroDebitAmount() { var subject = new CreditLedgerTransaction(); LedgerTransaction result = subject.WithReversal(50); Assert.AreEqual(0M, result.Debit); }