diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs index a78a4dda8..4336e9326 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockConfirmedIntegrationEventHandler.cs @@ -10,14 +10,11 @@ public class OrderStockConfirmedIntegrationEventHandler : IIntegrationEventHandler { - private readonly IOrderingIntegrationEventService _orderingIntegrationEventService; private readonly IOrderRepository _orderRepository; - public OrderStockConfirmedIntegrationEventHandler(IOrderRepository orderRepository, - IOrderingIntegrationEventService orderingIntegrationEventService) + public OrderStockConfirmedIntegrationEventHandler(IOrderRepository orderRepository) { _orderRepository = orderRepository; - _orderingIntegrationEventService = orderingIntegrationEventService; } public async Task Handle(OrderStockConfirmedIntegrationEvent @event) diff --git a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs index 6c210b5af..a60e59f89 100644 --- a/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs +++ b/src/Services/Ordering/Ordering.API/Application/IntegrationEvents/EventHandling/OrderStockNotConfirmedIntegrationEventHandler.cs @@ -8,20 +8,15 @@ namespace Ordering.API.Application.IntegrationEvents.EventHandling using System.Threading.Tasks; using Events; using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; - using Ordering.API.Application.Sagas; - using Microsoft.eShopOnContainers.Services.Ordering.Infrastructure; - using Ordering.Domain.Exceptions; + using Domain.Exceptions; public class OrderStockNotConfirmedIntegrationEventHandler : IIntegrationEventHandler { - private readonly IOrderingIntegrationEventService _orderingIntegrationEventService; private readonly IOrderRepository _orderRepository; - public OrderStockNotConfirmedIntegrationEventHandler(IOrderRepository orderRepository, - IOrderingIntegrationEventService orderingIntegrationEventService) + public OrderStockNotConfirmedIntegrationEventHandler(IOrderRepository orderRepository) { _orderRepository = orderRepository; - _orderingIntegrationEventService = orderingIntegrationEventService; } public async Task Handle(OrderStockNotConfirmedIntegrationEvent @event)