Skip to content

Commit 948cb47

Browse files
authored
Update middleware.md package necessary to the extension method Configure (#24259)
1 parent 90836b5 commit 948cb47

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

aspnetcore/test/middleware.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,10 @@ In the test project, create a test:
3131

3232
* Build and start a host that uses <xref:Microsoft.AspNetCore.TestHost.TestServer>.
3333
* Add any required services that the middleware uses.
34-
* Add the [Microsoft.AspNetCore.TestHost](https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/) NuGet package to the project:
35-
36-
```dotnetcli
37-
<ItemGroup>
38-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.*" />
39-
</ItemGroup>
40-
```
41-
34+
* Add a package reference to the project for the [`Microsoft.AspNetCore.TestHost`](https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/) NuGet package.
4235
* Configure the processing pipeline to use the middleware for the test.
4336

44-
[!code-csharp[](middleware/samples_snapshot/3.x/setup.cs?highlight=4-18)]
37+
[!code-csharp[](middleware/samples_snapshot/3.x/setup.cs?highlight=4-18)]
4538

4639
## Send requests with HttpClient
4740

0 commit comments

Comments
 (0)