public async Task ReturnsAuthenticationOptionsListViewModel() { var response = await _client.GetAsync(UriForTests.GetAllUri(ControllerNames.AuthenticationOptions)); response.EnsureSuccessStatusCode(); var vm = await Utilities.GetResponseContent <AuthenticationOptionsListViewModel>(response); Assert.IsType <AuthenticationOptionsListViewModel>(vm); Assert.NotEmpty(vm.ListDtos); }
public async Task ReturnsRouteClaimsRequirementsListViewModel() { var response = await _client.GetAsync(UriForTests.GetAllUri(ControllerNames.RouteClaimsRequirements)); response.EnsureSuccessStatusCode(); var vm = await Utilities.GetResponseContent <RouteClaimsRequirementsListViewModel>(response); Assert.IsType <RouteClaimsRequirementsListViewModel>(vm); Assert.NotEmpty(vm.ListDtos); }
public async Task ReturnsDownstreamHostAndPortsListViewModel() { var response = await _client.GetAsync(UriForTests.GetAllUri(ControllerNames.DownstreamHostAndPorts)); response.EnsureSuccessStatusCode(); var vm = await Utilities.GetResponseContent <DownstreamHostAndPortsListViewModel>(response); Assert.IsType <DownstreamHostAndPortsListViewModel>(vm); Assert.NotEmpty(vm.ListDtos); }