Soenneker.TestHosts.Integration
4.0.152
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.TestHosts.Integration --version 4.0.152
NuGet\Install-Package Soenneker.TestHosts.Integration -Version 4.0.152
<PackageReference Include="Soenneker.TestHosts.Integration" Version="4.0.152" />
<PackageVersion Include="Soenneker.TestHosts.Integration" Version="4.0.152" />
<PackageReference Include="Soenneker.TestHosts.Integration" />
paket add Soenneker.TestHosts.Integration --version 4.0.152
#r "nuget: Soenneker.TestHosts.Integration, 4.0.152"
#:package Soenneker.TestHosts.Integration@4.0.152
#addin nuget:?package=Soenneker.TestHosts.Integration&version=4.0.152
#tool nuget:?package=Soenneker.TestHosts.Integration&version=4.0.152
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. |
-
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.85)
- 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
An abstract xUnit test class for end-to-end integration (involving WebApplicationFactory) tests |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.153 | 0 | 8/30/2026 |
| 4.0.152 | 0 | 8/30/2026 |
| 4.0.151 | 0 | 8/30/2026 |
| 4.0.150 | 0 | 8/30/2026 |
| 4.0.149 | 0 | 8/30/2026 |
| 4.0.148 | 7 | 8/29/2026 |
| 4.0.147 | 24 | 8/29/2026 |
| 4.0.145 | 61 | 8/27/2026 |
| 4.0.144 | 50 | 8/27/2026 |
| 4.0.143 | 74 | 8/26/2026 |
| 4.0.142 | 73 | 8/26/2026 |
| 4.0.141 | 86 | 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 | 101 | 8/22/2026 |
| 4.0.136 | 136 | 8/21/2026 |
| 4.0.135 | 151 | 8/20/2026 |
| 4.0.134 | 94 | 8/19/2026 |
| 4.0.133 | 102 | 8/18/2026 |