public PaymentService(IRepository <Payment> paymentRepository, IRepository <Order> orderRepository, IDomainEventsRaiser events) { _paymentRepository = paymentRepository; _orderRepository = orderRepository; _events = events; }
public InventoryService(IRepository <InventoryItem> inventoryItemRepository, IDomainEventsRaiser events) { _inventoryItemRepository = inventoryItemRepository; _events = events; }
public OrderPlacementService(IRepository <Order> ordersRepository, IDomainEventsRaiser events) { _ordersRepository = ordersRepository; _events = events; }
public static void SetResolver(IDomainEventsRaiser raiser) { _eventsRaiser = raiser; }