public void AddItemToCard(Guid orderId, string card) { var orderItemAddedToCardEvent = new OrderItemAddedToCardEvent() { OrderId = orderId, Card = card }; this.ApplyChange(orderItemAddedToCardEvent); }
public void Handle(OrderItemAddedToCardEvent tEvent) { Console.WriteLine($"order listview handler: order item added for order {tEvent.OrderId} on thread {System.Threading.Thread.CurrentThread.ManagedThreadId}"); }
private void Apply(OrderItemAddedToCardEvent orderItemAddedToCardEvent) { Card = orderItemAddedToCardEvent.Card; }