Exemplo n.º 1
0
 public void AcceptOrder(int orderId)
 {
     if (!this.orderAccepted)
     {
         OrderAcceptedAcknowledgedV1 message = new OrderAcceptedAcknowledgedV1 {
             OrderId = orderId
         };
         this.Apply(message);
     }
 }
Exemplo n.º 2
0
 public void Handle(OrderAcceptedAcknowledgedV1 message)
 {
     this.orderAccepted = true;
     this.CheckForDispatch(message.OrderId, message.CustomerId);
 }