Ejemplo n.º 1
0
 public OrderPlaced(Guid conferenceId, OrderTotal orderTotal, DateTime reservationExpirationDate, string accessCode)
 {
     ConferenceId = conferenceId;
     OrderTotal   = orderTotal;
     ReservationExpirationDate = reservationExpirationDate;
     AccessCode = accessCode;
 }
Ejemplo n.º 2
0
 private void Handle(OrderPlaced evnt)
 {
     _id           = evnt.AggregateRootId;
     _conferenceId = evnt.ConferenceId;
     _total        = evnt.OrderTotal;
     _accessCode   = evnt.AccessCode;
     _status       = OrderStatus.Placed;
 }