From d74ac50e6719c2157db7684993e273d9d1766358 Mon Sep 17 00:00:00 2001 From: Christian Arenas Date: Thu, 11 May 2017 18:43:13 +0200 Subject: [PATCH] remove unused Interfaces dependencies --- .../OrderStockConfirmedIntegrationEventHandler.cs | 5 +---- .../OrderStockNotConfirmedIntegrationEventHandler.cs | 9 ++------- 2 files changed, 3 insertions(+), 11 deletions(-) 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)