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