From 08d51aaa960a36a0c15f83ee2f9f7330489042ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sun, 5 Jul 2020 05:23:58 +0200 Subject: [PATCH] Configure the OWIN server integration test server to use ITestOutputHelper --- .../OpenIddictServerAspNetCoreIntegrationTests.cs | 5 +---- .../OpenIddictServerOwinIntegrationTests.cs | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTests.cs b/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTests.cs index 81089e19..50e0a542 100644 --- a/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTests.cs +++ b/test/OpenIddict.Server.AspNetCore.IntegrationTests/OpenIddictServerAspNetCoreIntegrationTests.cs @@ -454,10 +454,7 @@ namespace OpenIddict.Server.AspNetCore.FunctionalTests #endif builder.UseEnvironment("Testing"); - builder.ConfigureLogging(builder => - { - builder.AddXUnit(OutputHelper); - }); + builder.ConfigureLogging(options => options.AddXUnit(OutputHelper)); builder.ConfigureServices(ConfigureServices); builder.ConfigureServices(services => diff --git a/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTests.cs b/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTests.cs index ace54c2f..e8134ad8 100644 --- a/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTests.cs +++ b/test/OpenIddict.Server.Owin.IntegrationTests/OpenIddictServerOwinIntegrationTests.cs @@ -12,6 +12,7 @@ using System.Security.Claims; using System.Text.Json; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; using Microsoft.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Testing; @@ -328,6 +329,8 @@ namespace OpenIddict.Server.Owin.FunctionalTests var services = new ServiceCollection(); ConfigureServices(services); + services.AddLogging(options => options.AddXUnit(OutputHelper)); + services.AddOpenIddict() .AddServer(options => {