Soenneker.TestHosts.Integration
4.0.153
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.TestHosts.Integration --version 4.0.153
NuGet\Install-Package Soenneker.TestHosts.Integration -Version 4.0.153
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.TestHosts.Integration" Version="4.0.153" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.TestHosts.Integration" Version="4.0.153" />
<PackageReference Include="Soenneker.TestHosts.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.TestHosts.Integration --version 4.0.153
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.TestHosts.Integration, 4.0.153"
#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.TestHosts.Integration@4.0.153
#: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.TestHosts.Integration&version=4.0.153
#tool nuget:?package=Soenneker.TestHosts.Integration&version=4.0.153
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.TestHosts.Integration
Provides a reusable and generic integration test host that dynamically registers and configures WebApplicationFactory{TEntryPoint} instances for multiple ASP.NET Core projects, with support for custom app settings, authentication, logging, and test utilities.
Install
dotnet add package Soenneker.TestHosts.Integration
Quick start
using Soenneker.TestHosts.Integration.Abstract;
IIntegrationTestHost integrationTestHost = /* resolve from DI */;
integrationTestHost.RegisterFactory("value");
Registers a lazy WebApplicationFactory{TEntryPoint} for the specified startup type and project name.
What you get
IIntegrationTestHost— Provides a reusable and generic integration test host that dynamically registers and configuresWebApplicationFactory{TEntryPoint}instances for multiple ASP.NET Core projects, with support for custom app settings, authentication, logging, and test utilities.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IIntegrationTestHost.Faker |
A configured instance of Faker for generating random data in tests. |
A configured instance of Faker for generating random data in tests. |
IIntegrationTestHost.AutoFaker |
A configured instance of AutoFaker using optional custom configuration. |
A configured instance of AutoFaker using optional custom configuration. |
Important behavior
IIntegrationTestHost.GetFactory(): Thrown if the factory was not registered first.
Practical notes
- 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
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.11)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Sinks.Async (>= 2.1.0)
- Soenneker.Enums.DeployEnvironment (>= 4.0.235)
- Soenneker.Serilog.Sinks.TUnit (>= 4.0.86)
- Soenneker.StartupFilters.IntegrationTests (>= 4.0.119)
- Soenneker.Utils.AutoBogus (>= 4.0.929)
- Soenneker.Utils.Test.AuthHandler (>= 4.0.325)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.TestHosts.Integration:
| Package | Downloads |
|---|---|
|
Soenneker.Tests.Integration
A TUnit base class for integration tests that use a shared WebApplicationFactory host. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.156 | 0 | 8/31/2026 |
| 4.0.155 | 23 | 8/30/2026 |
| 4.0.154 | 21 | 8/30/2026 |
| 4.0.153 | 32 | 8/30/2026 |
| 4.0.152 | 50 | 8/30/2026 |
| 4.0.151 | 35 | 8/30/2026 |
| 4.0.150 | 42 | 8/30/2026 |
| 4.0.149 | 52 | 8/30/2026 |
| 4.0.148 | 40 | 8/29/2026 |
| 4.0.147 | 37 | 8/29/2026 |
| 4.0.145 | 79 | 8/27/2026 |
| 4.0.144 | 52 | 8/27/2026 |
| 4.0.143 | 74 | 8/26/2026 |
| 4.0.142 | 75 | 8/26/2026 |
| 4.0.141 | 87 | 8/26/2026 |
| 4.0.140 | 58 | 8/26/2026 |
| 4.0.139 | 64 | 8/26/2026 |
| 4.0.138 | 116 | 8/24/2026 |
| 4.0.137 | 103 | 8/22/2026 |
| 4.0.136 | 137 | 8/21/2026 |
Loading failed