Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }