Example #1
0
        public BudgetCategory(string name, Money budget)
        {
            this.Name = name;
            this.Budget = budget.Clone();
            this.IsClosed = false;

            this.transactions = new FinancialTransactions();
        }
Example #2
0
        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;
 }