From 3265c7f70de03b6724df17b4ecbaf596ddcfbf77 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 3 Mar 2020 17:25:28 -0500 Subject: [PATCH] Adding `new DefaultHttpContext()` Adding `new DefaultHttpContext()` to `Mock` alternatives --- .../3.0/http-defaulthttpcontext-extensibility-removed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core-changes/aspnetcore/3.0/http-defaulthttpcontext-extensibility-removed.md b/includes/core-changes/aspnetcore/3.0/http-defaulthttpcontext-extensibility-removed.md index e847fadc87963..4f67d2daa07ec 100644 --- a/includes/core-changes/aspnetcore/3.0/http-defaulthttpcontext-extensibility-removed.md +++ b/includes/core-changes/aspnetcore/3.0/http-defaulthttpcontext-extensibility-removed.md @@ -2,7 +2,7 @@ As part of ASP.NET Core 3.0 performance improvements, the extensibility of `DefaultHttpContext` was removed. The class is now `sealed`. For more information, see [dotnet/aspnetcore#6504](https://github.com/dotnet/aspnetcore/pull/6504). -If your unit tests use `Mock`, use `Mock` instead. +If your unit tests use `Mock`, use `Mock` or `new DefaultHttpContext()` instead. For discussion, see [dotnet/aspnetcore#6534](https://github.com/dotnet/aspnetcore/issues/6534).