public OrderController(ILogger <OrderController> logger, IOrderRepository orderRepository, IMapper mapper,
                        IStaffProductFacade staffProductFacade, IInvoiceFacade invoiceFacade, IReviewFacade reviewFacade)
 {
     _logger             = logger;
     _orderRepository    = orderRepository;
     _mapper             = mapper;
     _staffProductFacade = staffProductFacade;
     _invoiceFacade      = invoiceFacade;
     _reviewFacade       = reviewFacade;
 }
Exemple #2
0
 public OrderController(ILogger <OrderController> logger,
                        IOrderFacade orderFacade,
                        IBasketFacade basketFacade,
                        IReviewFacade reviewFacade)
 {
     _logger       = logger;
     _orderFacade  = orderFacade;
     _basketFacade = basketFacade;
     _reviewFacade = reviewFacade;
 }
Exemple #3
0
        private void DefaultSetupRealHttpClient(HttpStatusCode statusCode)
        {
            SetupOrder();
            var expectedResult = new HttpResponseMessage
            {
                StatusCode = statusCode
            };

            SetMockMessageHandler(expectedResult);
            SetupRealHttpClient(expectedResult);
            SetupHttpFactoryMock(client);
            SetupConfig();
            SetupHttpHandlerMock();
            facade = new ReviewFacade(config, mockHttpHandler.Object);
            SetupConfig();
        }
Exemple #4
0
 public ReviewController(ILogger <ReviewController> logger,
                         IReviewFacade reviewFacade)
 {
     _logger       = logger;
     _reviewFacade = reviewFacade;
 }
 public ReviewController(IReviewFacade facade)
 {
     _logger = LogManager.GetLogger(Assembly.GetExecutingAssembly().GetName().Name);
     _facade = facade;
 }