Esempio n. 1
0
 private void TransferOut(Ledger other)
 {
     Transfer(other, -Balance);
 }
Esempio n. 2
0
 private void TransferIn(Ledger other)
 {
     Transfer(other, other.Balance);
 }
Esempio n. 3
0
 public void AssumeLiability(Ledger other)
 {
     TransferIn(other);
     other.TransferOut(this);
 }
Esempio n. 4
0
 private void Transfer(Ledger other, decimal amount)
 {
     _entries.Add(new LedgerEntry(other, amount));
 }
Esempio n. 5
0
 private void Given_the_other_shows_a_liability()
 {
     LedgerB = new Ledger(OtherLiability);
 }