예제 #1
0
 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;
 }
예제 #2
0
        public void Update(Description description, Favored favored, Money value)
        {
            AddNotifications(description, favored, value);

            if (Invalid)
            {
                return;
            }

            Description = description;
            Favored     = favored;
            Value       = value;
        }