コード例 #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);
        }
コード例 #2
0
ファイル: GetAll.cs プロジェクト: WombatWithBeard/ApiGateway
        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);
        }
コード例 #3
0
ファイル: GetAll.cs プロジェクト: WombatWithBeard/ApiGateway
        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);
        }