Soenneker.Tests.Integration
4.0.896
Prefix Reserved
dotnet add package Soenneker.Tests.Integration --version 4.0.896
NuGet\Install-Package Soenneker.Tests.Integration -Version 4.0.896
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Tests.Integration" Version="4.0.896" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Tests.Integration" Version="4.0.896" />
<PackageReference Include="Soenneker.Tests.Integration" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Tests.Integration --version 4.0.896
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Tests.Integration, 4.0.896"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Tests.Integration@4.0.896
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Tests.Integration&version=4.0.896
#tool nuget:?package=Soenneker.Tests.Integration&version=4.0.896
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Tests.Integration
Represents an integration test over a WebApplicationFactory{TEntryPoint}.
Install
dotnet add package Soenneker.Tests.Integration
Quick start
using Soenneker.Tests.Integration.Abstract;
IIntegrationTest<TStartup> integrationTest = /* resolve from DI */;
var result = integrationTest.Resolve();
Resolves a service from the application service provider.
What you get
IIntegrationTest<TStartup>— Represents an integration test over aWebApplicationFactory{TEntryPoint}.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IIntegrationTest<TStartup>.Factory |
The WebApplicationFactory used for creating test HTTP clients. | The WebApplicationFactory used for creating test HTTP clients. |
IIntegrationTest<TStartup>.Client |
Fully authenticated admin test client. | Fully authenticated admin test client. |
IIntegrationTest<TStartup>.Faker |
Faker instance for generating fake data. | Faker instance for generating fake data. |
IIntegrationTest<TStartup>.AutoFaker |
AutoFaker instance for generating auto-populated fake data. | AutoFaker instance for generating auto-populated fake data. |
IIntegrationTest<TStartup>.Scope |
The current async service scope used for resolving scoped services. | The current async service scope used for resolving scoped services. |
IIntegrationTest<TStartup>.Resolve(scoped) |
Resolves a service from the application service provider. | The resolved service. |
IIntegrationTest<TStartup>.WaitOnQueueToEmpty(cancellationToken) |
Waits until the background queue has finished processing all items. | A ValueTask representing the asynchronous operation. |
IIntegrationTest<TStartup>.CreateScope() |
Creates a new async scope for resolving scoped services. | Returns no value; the requested change is complete when the method returns. |
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
- Dispose instances you own when their scope ends so held resources can be released.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Extensions.ServiceProvider (>= 4.0.331)
- Soenneker.Extensions.WebApplicationFactories (>= 4.0.323)
- Soenneker.TestHosts.Integration (>= 4.0.145)
- Soenneker.Tests.Logging (>= 4.0.154)
- Soenneker.Utils.BackgroundQueue (>= 4.0.2459)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.896 | 0 | 8/29/2026 |
| 4.0.894 | 0 | 8/29/2026 |
| 4.0.893 | 0 | 8/29/2026 |
| 4.0.892 | 0 | 8/29/2026 |
| 4.0.890 | 41 | 8/27/2026 |
| 4.0.889 | 46 | 8/27/2026 |
| 4.0.888 | 60 | 8/26/2026 |
| 4.0.887 | 61 | 8/26/2026 |
| 4.0.886 | 67 | 8/26/2026 |
| 4.0.885 | 77 | 8/26/2026 |
| 4.0.884 | 71 | 8/25/2026 |
| 4.0.883 | 73 | 8/25/2026 |
| 4.0.882 | 73 | 8/25/2026 |
| 4.0.881 | 90 | 8/22/2026 |
| 4.0.879 | 82 | 8/21/2026 |
| 4.0.878 | 98 | 8/21/2026 |
| 4.0.877 | 87 | 8/21/2026 |
| 4.0.876 | 98 | 8/20/2026 |
| 4.0.875 | 103 | 8/20/2026 |
| 4.0.874 | 86 | 8/19/2026 |
Loading failed
Update dependency Soenneker.Tests.Logging to 4.0.154 (#1421)