public void Extend(DateTime newDueDate, decimal price) { var @event = new FixedPriceJobOrderExtendedEvent( this.Id, newDueDate, price ); RaiseEvent(@event); }
public void Apply(FixedPriceJobOrderExtendedEvent evt) { this.DueDate = evt.NewDueDate; this.Price = new PositiveMoney(evt.Price, this.Price.Currency); }