We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80446f1 commit 43ae480Copy full SHA for 43ae480
aspnetcore/test/middleware.md
@@ -30,6 +30,14 @@ In the test project, create a test:
30
31
* Build and start a host that uses <xref:Microsoft.AspNetCore.TestHost.TestServer>.
32
* Add any required services that the middleware uses.
33
+* Add the [Microsoft.AspNetCore.TestHost](https://www.nuget.org/packages/Microsoft.AspNetCore.TestHost/) NuGet package to the project:
34
+
35
+ ```dotnetcli
36
+ <ItemGroup>
37
+ <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.*" />
38
+ </ItemGroup>
39
+ ```
40
41
* Configure the processing pipeline to use the middleware for the test.
42
43
[!code-csharp[](middleware/samples_snapshot/3.x/setup.cs?highlight=4-18)]
0 commit comments