Example #1
0
        public void Handle(TakePayment baseOrder)
        {
            var order = new CashiersOrder(baseOrder.Order);

            order.IsPaid = true;

            var orderPaid = new OrderPaid {
                Order = order.InnerItem
            };

            orderPaid.ReplyTo(baseOrder);
            _publisher.Publish(orderPaid);
        }
Example #2
0
 public void Handle(OrderPaid order)
 {
     WriteAction(order);
     Console.WriteLine($"Order paid: \n\r {order.Order}");
 }
Example #3
0
 public void Handle(OrderPaid order)
 {
     _midgetHouse.KillMidget(this);
 }