Microsoft.Extensions.Hosting.Testing 8.7.0-rtm.24353.5

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Hosting.Testing.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Hosting.Testing --version 8.7.0-rtm.24353.5                
NuGet\Install-Package Microsoft.Extensions.Hosting.Testing -Version 8.7.0-rtm.24353.5                
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="Microsoft.Extensions.Hosting.Testing" Version="8.7.0-rtm.24353.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Extensions.Hosting.Testing --version 8.7.0-rtm.24353.5                
#r "nuget: Microsoft.Extensions.Hosting.Testing, 8.7.0-rtm.24353.5"                
#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.
// Install Microsoft.Extensions.Hosting.Testing as a Cake Addin
#addin nuget:?package=Microsoft.Extensions.Hosting.Testing&version=8.7.0-rtm.24353.5&prerelease

// Install Microsoft.Extensions.Hosting.Testing as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.Hosting.Testing&version=8.7.0-rtm.24353.5&prerelease                

Microsoft.Extensions.Hosting.Testing

Tools for integration testing of apps built with Microsoft.Extensions.Hosting.

Install the package

From the command-line:

dotnet add package Microsoft.Extensions.Hosting.Testing

Or directly in the C# project file:

<ItemGroup>
  <PackageReference Include="Microsoft.Extensions.Hosting.Testing" Version="[CURRENTVERSION]" />
</ItemGroup>

Usage Example

FakeHost

FakeHost enables creating an application host pre-configured for a unit test environment.

The host can be created using the following APIs:

public static IHostBuilder CreateBuilder()
public static IHostBuilder CreateBuilder(Action<FakeHostOptions> configure)
public static IHostBuilder CreateBuilder(FakeHostOptions options)

For example:

using var host = await FakeHost.CreateBuilder(options => { });
    .ConfigureServices(x =>
    {
        // ...
    })
    .StartAsync();

FakeHostingExtensions

FakeHostingExtensions is a collection of IHost and IHostBuilder extension methods for use within a unit test environment. These help collect logs as well as augment the host and app configurations.

Feedback & Contributing

For any feedback or contributions, please visit us in our GitHub repo.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.