Soenneker.TestHosts.Integration 4.0.154

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.TestHosts.Integration --version 4.0.154
                    
NuGet\Install-Package Soenneker.TestHosts.Integration -Version 4.0.154
                    
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.154" />
                    
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.154" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.TestHosts.Integration" />
                    
Project file
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.154
                    
#r "nuget: Soenneker.TestHosts.Integration, 4.0.154"
                    
#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.154
                    
#: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.154
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.TestHosts.Integration&version=4.0.154
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 configures WebApplicationFactory{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 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.

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.163 0 9/1/2026
4.0.162 0 9/1/2026
4.0.161 35 9/1/2026
4.0.160 46 8/31/2026
4.0.159 54 8/31/2026
4.0.158 40 8/31/2026
4.0.157 43 8/31/2026
4.0.156 43 8/31/2026
4.0.155 78 8/30/2026
4.0.154 42 8/30/2026
4.0.153 49 8/30/2026
4.0.152 74 8/30/2026
4.0.151 45 8/30/2026
4.0.150 51 8/30/2026
4.0.149 65 8/30/2026
4.0.148 48 8/29/2026
4.0.147 44 8/29/2026
4.0.145 94 8/27/2026
4.0.144 62 8/27/2026
4.0.143 83 8/26/2026
Loading failed