コード例 #1
0
 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()
     };
 }
コード例 #2
0
 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();
 }