public ReportsQueryProcessor(ICustomersQueryProcessor customersQueryProcessor, IOrdersQueryProcessor ordersQueryProcessor, IComplaintsQueryProcessor complaintsQueryProcessor, IParticipantsQueryProcessor participantsQueryProcessor, IFieldsQueryProcessor fieldsQueryProcessor) { _customersQueryProcessor = customersQueryProcessor; _ordersQueryProcessor = ordersQueryProcessor; _complaintsQueryProcessor = complaintsQueryProcessor; _participantsQueryProcessor = participantsQueryProcessor; _fieldsQueryProcessor = fieldsQueryProcessor; }
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); }
public OrdersController(IOrdersQueryProcessor ordersQueryProcessor, IParticipantsQueryProcessor participantsQueryProcessor) { _ordersQueryProcessor = ordersQueryProcessor; _participantsQueryProcessor = participantsQueryProcessor; }
public OrdersController(IOrdersQueryProcessor query, IMapper mapper) { _query = query; _mapper = mapper; }