コード例 #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
ファイル: OrdersController.cs プロジェクト: radtek/OMSWeb
 public OrdersController(IOrdersQueryProcessor query, IMapper mapper)
 {
     _query  = query;
     _mapper = mapper;
 }