示例#1
0
 public ReportsQueryProcessor(ICustomersQueryProcessor customersQueryProcessor, IOrdersQueryProcessor ordersQueryProcessor, IComplaintsQueryProcessor complaintsQueryProcessor, IParticipantsQueryProcessor participantsQueryProcessor, IFieldsQueryProcessor fieldsQueryProcessor)
 {
     _customersQueryProcessor    = customersQueryProcessor;
     _ordersQueryProcessor       = ordersQueryProcessor;
     _complaintsQueryProcessor   = complaintsQueryProcessor;
     _participantsQueryProcessor = participantsQueryProcessor;
     _fieldsQueryProcessor       = fieldsQueryProcessor;
 }
示例#2
0
        public OrdersQueryProcessorTest()
        {
            _random = new Random();
            _uow    = new Mock <IUnitOfWork>();

            _orderList = new List <Order>();
            _uow.Setup(x => x.Query <Order>()).Returns(() => _orderList.AsQueryable());

            _query = new OrdersQueryProcessor(_uow.Object);
        }
示例#3
0
 public OrdersController(IOrdersQueryProcessor ordersQueryProcessor, IParticipantsQueryProcessor participantsQueryProcessor)
 {
     _ordersQueryProcessor       = ordersQueryProcessor;
     _participantsQueryProcessor = participantsQueryProcessor;
 }
示例#4
0
 public OrdersController(IOrdersQueryProcessor query, IMapper mapper)
 {
     _query  = query;
     _mapper = mapper;
 }