public CustomerController(ILogger <CustomerController> logger, IOrderRepository orderRepository, IMapper mapper, ICustomerAccountFacade customerFacade) { _logger = logger; _orderRepository = orderRepository; _mapper = mapper; _customerFacade = customerFacade; }
private void DefaultSetup(HttpStatusCode statusCode) { SetupCustomer(); var expectedResult = new HttpResponseMessage { StatusCode = statusCode }; SetMockMessageHandler(expectedResult); SetupRealHttpClient(expectedResult); SetupConfig(); SetupHttpHandlerMock(); facade = new CustomerFacade(config, mockHttpHandler.Object); SetupConfig(); }