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