public BudgetCategory(string name, Money budget) { this.Name = name; this.Budget = budget.Clone(); this.IsClosed = false; this.transactions = new FinancialTransactions(); }
public void MoneyCanBeCloned() { Money money1 = new Money(42); Money money2 = money1.Clone(); Assert.AreEqual(money1, money2); Assert.AreNotSame(money1, money2); }
public FinancialTransaction(DateTime date, Money value) { this.Value = value.Clone(); this.Date = date; }