public void get_controller_mapping_should_return_expected_result() { // arrange var configuration = new HttpConfiguration(); var options = new ApiVersioningOptions(); var selector = new ApiVersionControllerSelector(configuration, options); // act var mapping = selector.GetControllerMapping(); // assert mapping.Values.Cast <HttpControllerDescriptorGroup>().Should().NotBeEmpty(); }
public void get_controller_name_should_return_expected_value(HttpRequestMessage request, string expected) { // arrange var configuration = new HttpConfiguration(); var options = new ApiVersioningOptions(); var selector = new ApiVersionControllerSelector(configuration, options); // act var controllerName = selector.GetControllerName(request); // assert controllerName.Should().Be(expected); }