public ProductController(ILogger <ProductController> logger, IProductRepository productRepo, IMapper mapper,
                          IProductOrderFacade facade)
 {
     _logger      = logger;
     _productRepo = productRepo;
     _mapper      = mapper;
     _facade      = facade;
 }
Beispiel #2
0
        private void DefaultSetup(HttpStatusCode statusCode)
        {
            SetupOrder();
            var expectedResult = new HttpResponseMessage
            {
                StatusCode = statusCode
            };

            SetMockMessageHandler(expectedResult);
            SetupRealHttpClient(expectedResult);
            SetupHttpFactoryMock(client);
            SetupConfig();
            SetupHttpHandlerMock();
            facade = new ProductOrderFacade.ProductOrderFacade(config, mockHttpHandler.Object);
            //SetupConfig();
        }