Exemplo n.º 1
0
        public async Task When_Getting_Resources_Then_Identifiers_Are_Returned()
        {
            // ARRANGE
            InitializeFakeObjects();
            _httpClientFactoryStub.Setup(h => h.GetHttpClient()).Returns(_server.Client);

            // ACT
            var resources = await _resourceSetClient.GetAllByResolution(
                baseUrl + "/.well-known/uma2-configuration", "token");

            // ASSERT
            Assert.NotNull(resources.Content);
            Assert.True(resources.Content.Any());
        }
        public async Task When_Getting_Resources_Then_Identifiers_Are_Returned()
        {
            const string baseUrl = "http://localhost:5000";

            // ARRANGE
            InitializeFakeObjects();
            _httpClientFactoryStub.Setup(h => h.GetHttpClient()).Returns(_server.Client);

            // ACT
            var resources = await _resourceSetClient.GetAllByResolution(
                baseUrl + "/.well-known/uma-configuration", "header");

            // ASSERT
            Assert.NotNull(resources);
            Assert.True(resources.Any());
        }