public Expense(Guid id, BankAccount account, Description description, Favored favored, Money value) : base(id) { Account = account; Update(description, favored, value); State = EExpenseState.Opened; CreatedDate = DateTime.Now; PaidDate = null; }
public void Update(Description description, Favored favored, Money value) { AddNotifications(description, favored, value); if (Invalid) { return; } Description = description; Favored = favored; Value = value; }