From d65d22b1ec6cbce11cd3db56c710cacaeba4d7d4 Mon Sep 17 00:00:00 2001 From: Artak Mkrtchyan Date: Wed, 26 Feb 2025 13:47:14 -0800 Subject: [PATCH] Add a new UseKestel API to the WebApplicationFactory --- .../Microsoft.AspNetCore.Mvc.Testing.csproj | 1 + .../Mvc.Testing/src/PublicAPI.Unshipped.txt | 4 + src/Mvc/Mvc.Testing/src/Resources.resx | 5 +- .../Mvc.Testing/src/WebApplicationFactory.cs | 109 ++++++++++++++++-- 4 files changed, 106 insertions(+), 13 deletions(-) diff --git a/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj b/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj index 3201fd08940b..76118e0bb154 100644 --- a/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj +++ b/src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.csproj @@ -13,6 +13,7 @@ + diff --git a/src/Mvc/Mvc.Testing/src/PublicAPI.Unshipped.txt b/src/Mvc/Mvc.Testing/src/PublicAPI.Unshipped.txt index 7dc5c58110bf..d8f82d0db79f 100644 --- a/src/Mvc/Mvc.Testing/src/PublicAPI.Unshipped.txt +++ b/src/Mvc/Mvc.Testing/src/PublicAPI.Unshipped.txt @@ -1 +1,5 @@ #nullable enable +*REMOVED*Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory.Server.get -> Microsoft.AspNetCore.TestHost.TestServer! +Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory.Server.get -> Microsoft.AspNetCore.TestHost.TestServer? +Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory.UseKestrel() -> void +virtual Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory.CreateHandler() -> System.Net.Http.HttpMessageHandler! diff --git a/src/Mvc/Mvc.Testing/src/Resources.resx b/src/Mvc/Mvc.Testing/src/Resources.resx index 84ce491ca5ed..abfb9fcfe3b3 100644 --- a/src/Mvc/Mvc.Testing/src/Resources.resx +++ b/src/Mvc/Mvc.Testing/src/Resources.resx @@ -1,4 +1,4 @@ - +