Beispiel #1
0
        private bool Contains(Cash aMoney)
        {
            Cash m = FindMoney(aMoney.Currency);

            return(m.Amount == aMoney.Amount);
        }
Beispiel #2
0
 public CashBag(Cash m, CashBag bag)
 {
     AppendMoney(m);
     AppendBag(bag);
 }
Beispiel #3
0
 public ICash AddMoney(Cash m)
 {
     return((new CashBag(m, this)).Simplify());
 }
Beispiel #4
0
 public CashBag(Cash m1, Cash m2)
 {
     AppendMoney(m1);
     AppendMoney(m2);
 }