public static Order ProcessOrder(VersionedEntityId customerId, VersionedEntityId orderId) { return EventStorage.OrderEventRepository.AppendEvent(new OrderProcessed(customerId, orderId)); }
public static void ChangeCustomerStatus(VersionedEntityId id, bool status) { EventStorage.CustomerEventRepository.AppendEvent(new CustomerStatusChanged(id, status)); }
public static Order PlaceOrder(VersionedEntityId customerId) { return EventStorage.OrderEventRepository.AppendEvent(new OrderCreated(customerId)); }