protected FinanceStatement(Title title) { Id = Guid.NewGuid(); Title = title; ReferenceDate = MonthYear.Now; AmountRecords = new AmountRecordCollection(); }
public static Expense Load(Guid id, Title title, AmountRecordCollection amountRecords, MonthYear referenceDate) { Expense expense = new Expense(); expense.Id = id; expense.Title = title; expense.AmountRecords = amountRecords; expense.ReferenceDate = referenceDate; return(expense); }
public static Income Load(Guid id, Title title, AmountRecordCollection amountRecords, MonthYear referenceDate) { Income income = new Income(); income.Id = id; income.Title = title; income.AmountRecords = amountRecords; income.ReferenceDate = referenceDate; return(income); }
public static Investment Load(Guid id, Title title, AmountRecordCollection amountRecords, MonthYear referenceDate) { Investment investment = new Investment(); investment.Id = id; investment.Title = title; investment.AmountRecords = amountRecords; investment.ReferenceDate = referenceDate; return(investment); }
protected FinanceStatement(Title title, Amount amount) { Id = Guid.NewGuid(); Title = title; ReferenceDate = MonthYear.Now; AmountRecords = new AmountRecordCollection(); if (amount != null) { AmountRecords.Add(amount); } }