public OrderCanceledConsumerTest() { productionQueueRepo = new Mock <IProductionQueueRepo>(); logger = new Mock <ILogger <OrderCanceledConsumer> >(); consumer = new OrderCanceledConsumer(productionQueueRepo.Object, logger.Object); productionQueues = new List <ProductionQueue> { new ProductionQueue(), new ProductionQueue() }; }
public OrderCanceledConsumerTest() { changeProductsPopularityService = new Mock <IChangeProductsPopularityService>(); logger = new Mock <ILogger <OrderCanceledConsumer> >(); consumer = new OrderCanceledConsumer(changeProductsPopularityService.Object, logger.Object); orderItems = new List <OrderItem> { new OrderItem() }; context = GetContext(); }