public async Task IdentityServerProxy_GetDiscoverDocumentAsync_Succeeds() { var webHostBuilder = new IdentityServerTestWebHostBuilder() .AddClients(new Client { ClientId = "MyClient", ClientSecrets = new List <Secret> { new Secret("MySecret".Sha256()) } }) .AddApiResources(new ApiResource()) .AddApiScopes(new ApiScope()) .CreateWebHostBuider(); var identityServerClient = new IdentityServerWebHostProxy(webHostBuilder); var discoveryResponse = await identityServerClient.GetDiscoverResponseAsync(); Assert.NotNull(discoveryResponse); Assert.False(discoveryResponse.IsError, discoveryResponse.Error); }