Esempio n. 1
0
 public CustomerVehicleHistoryControllerTest(VehicleHistoryAPIClassInitializationFixture fixture)
 {
     _filteredCustomerVehicleHistoryDto = fixture._filteredCustomerVehicleHistoryDto;
     customerVehicleHistoryServiceMock  = fixture.customerVehicleHistoryServiceMock;
     customerVehicleHistoryParams       = fixture.customerVehicleHistoryParams;
     customerVehicleHistorycontroller   = fixture.customerVehicleHistorycontroller;
 }
        private void ConfigureCustomerVehicleHistoryController()
        {
            var _loggerMock = Mock.Of <ILogger <CustomerVehicleHistoryController> >();

            customerVehicleHistorycontroller = new CustomerVehicleHistoryController(customerVehicleHistoryServiceMock.Object, _loggerMock);

            // Ensure the controller can add response headers
            customerVehicleHistorycontroller.ControllerContext             = new ControllerContext();
            customerVehicleHistorycontroller.ControllerContext.HttpContext = new DefaultHttpContext();
        }