public void MoneyBagHash() { MoneyBag equal = new MoneyBag(new Money(12, "CHF"), new Money(7, "USD")); Assert.AreEqual(fMB1.GetHashCode(), equal.GetHashCode()); }
public MoneyBag(MoneyBag m1, MoneyBag m2) { AppendBag(m1); AppendBag(m2); }
public IMoney AddMoneyBag(MoneyBag s) { return((new MoneyBag(s, this)).Simplify()); }
public MoneyBag(Money m, MoneyBag bag) { AppendMoney(m); AppendBag(bag); }