From 948cb47f23ef139772fabf71bb4f56ac09e05ec5 Mon Sep 17 00:00:00 2001 From: Mohamed Amine HAMDI Date: Fri, 10 Dec 2021 17:35:10 +0100 Subject: [PATCH] Update middleware.md package necessary to the extension method Configure (#24259) --- aspnetcore/test/middleware.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/aspnetcore/test/middleware.md b/aspnetcore/test/middleware.md index 7bf4a9c581..f1819bdbac 100644 --- a/aspnetcore/test/middleware.md +++ b/aspnetcore/test/middleware.md @@ -31,17 +31,10 @@ In the test project, create a test: * Build and start a host that uses . * Add any required services that the middleware uses. -* Add the [Microsoft.AspNetCore.TestHost](https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/) NuGet package to the project: - - ```dotnetcli - - - - ``` - +* Add a package reference to the project for the [`Microsoft.AspNetCore.TestHost`](https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/) NuGet package. * Configure the processing pipeline to use the middleware for the test. -[!code-csharp[](middleware/samples_snapshot/3.x/setup.cs?highlight=4-18)] + [!code-csharp[](middleware/samples_snapshot/3.x/setup.cs?highlight=4-18)] ## Send requests with HttpClient