Soenneker.TestHosts.Integration 4.0.152

Prefix Reserved
dotnet add package Soenneker.TestHosts.Integration --version 4.0.152
                    
NuGet\Install-Package Soenneker.TestHosts.Integration -Version 4.0.152
                    
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.152" />
                    
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.152" />
                    
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.152
                    
#r "nuget: Soenneker.TestHosts.Integration, 4.0.152"
                    
#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.152
                    
#: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.152
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.TestHosts.Integration&version=4.0.152
                    
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

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.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
4.0.132 118 8/18/2026
Loading failed