public GetOrdersByFilterQueryHandler(
     IOrderQueryRepository orderRepository,
     IProductQueryRepository productRepository,
     IServiceMethodQueryRepository serviceRepository)
 {
     _orderRepository         = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _productRepository       = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _serviceMethodRepository = serviceRepository ?? throw new ArgumentNullException(nameof(serviceRepository));
 }
Beispiel #2
0
 public OrdersController(
     IOrderQueryRepository queryRepo,
     IOrderCommandRepository commandRepo,
     IEitherMapper mapper,
     ILogger <OrdersController> logger)
 {
     _queryRepo   = queryRepo;
     _commandRepo = commandRepo;
     _mapper      = mapper;
     _logger      = logger;
 }
Beispiel #3
0
        public GoogleApiExport(
            ITeglasConector teglasConector,
            IHedoneConector hedoneConector,
            ILipaConector lipaConector,
            IOrderQueryRepository orderQueryRepo,
            ICustomerQueryRepository customerQueryRepo,
            IRestaurantQueryRepository restaurantQueryRepo)
        {
            // Connectors
            _lipaConector   = lipaConector;
            _hedoneConector = hedoneConector;
            _teglasConector = teglasConector;

            // Services
            _orderQueryRepo      = orderQueryRepo;
            _customerQueryRepo   = customerQueryRepo;
            _restaurantQueryRepo = restaurantQueryRepo;
        }
 public OrderByIdQueryHandler(IOrderQueryRepository orderQueryRepository)
 {
     this.orderQueryRepository = orderQueryRepository;
 }