コード例 #1
0
 public void Extend(DateTime? newDateOfExpiration, decimal value)
 {
     var @event = new TimeAndMaterialJobOrderExtendedEvent(
         this.Id,
         newDateOfExpiration,
         value
     );
     RaiseEvent(@event);
 }
コード例 #2
0
 public void Apply(TimeAndMaterialJobOrderExtendedEvent evt)
 {
     this.DateOfExpiration = evt.NewDateOfExpiration;
     this.Value = new PositiveMoney(evt.Value, this.Value.Currency);
 }