public GetProductionQueuesQueryHandlerTest()
 {
     searchProductionQueuesService = new Mock <ISearchProductionQueuesService>();
     mapper           = new Mock <IMapper>();
     query            = new GetProductionQueuesQuery(filteringData);
     queryHandler     = new GetProductionQueuesQueryHandler(searchProductionQueuesService.Object, mapper.Object);
     productionQueues = new List <ProductionQueue> {
         new ProductionQueue(), new ProductionQueue()
     };
     productionQueuesDto = new List <GetProductionQueuesDto> {
         new GetProductionQueuesDto(), new GetProductionQueuesDto()
     };
 }
예제 #2
0
        public async Task <IEnumerable <GetProductionQueuesDto> > Handle(GetProductionQueuesQuery request, CancellationToken cancellationToken)
        {
            var productionQueues = await searchProductionQueuesService.SearchProductionQueues(request.FilteringData);

            return(mapper.Map <IEnumerable <GetProductionQueuesDto> >(productionQueues));
        }