Microsoft.Extensions.Hosting.Testing
8.8.0-rtm.24412.9
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.Extensions.Hosting.Testing --version 8.8.0-rtm.24412.9
NuGet\Install-Package Microsoft.Extensions.Hosting.Testing -Version 8.8.0-rtm.24412.9
<PackageReference Include="Microsoft.Extensions.Hosting.Testing" Version="8.8.0-rtm.24412.9" />
paket add Microsoft.Extensions.Hosting.Testing --version 8.8.0-rtm.24412.9
#r "nuget: Microsoft.Extensions.Hosting.Testing, 8.8.0-rtm.24412.9"
// Install Microsoft.Extensions.Hosting.Testing as a Cake Addin #addin nuget:?package=Microsoft.Extensions.Hosting.Testing&version=8.8.0-rtm.24412.9&prerelease // Install Microsoft.Extensions.Hosting.Testing as a Cake Tool #tool nuget:?package=Microsoft.Extensions.Hosting.Testing&version=8.8.0-rtm.24412.9&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 | Versions 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. |
-
.NETFramework 4.6.2
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.Compliance.Testing (>= 8.8.0)
- Microsoft.Extensions.Diagnostics.Testing (>= 8.8.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
-
net6.0
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.Compliance.Testing (>= 8.8.0)
- Microsoft.Extensions.Diagnostics.Testing (>= 8.8.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
-
net8.0
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.Compliance.Testing (>= 8.8.0)
- Microsoft.Extensions.Diagnostics.Testing (>= 8.8.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.0-preview.9.24507.7 | 114 | 10/8/2024 |
9.0.0-preview.8.24460.1 | 105 | 9/10/2024 |
9.0.0-preview.7.24412.10 | 76 | 8/14/2024 |
9.0.0-preview.6.24353.1 | 347 | 7/10/2024 |
9.0.0-preview.5.24311.7 | 100 | 6/11/2024 |
9.0.0-preview.4.24271.2 | 96 | 5/21/2024 |
9.0.0-preview.3.24209.3 | 131 | 4/11/2024 |
9.0.0-preview.2.24157.4 | 96 | 3/12/2024 |
9.0.0-preview.1.24108.1 | 93 | 2/13/2024 |
8.10.0-rtm.24502.7 | 61 | 10/8/2024 |
8.9.1-rtm.24456.4 | 53 | 9/6/2024 |
8.9.0-rtm.24454.2 | 50 | 9/5/2024 |
8.8.0-rtm.24412.9 | 84 | 8/13/2024 |
8.7.0-rtm.24353.5 | 87 | 7/10/2024 |
8.6.0-rtm.24311.4 | 131 | 6/11/2024 |
8.5.0-rtm.24263.4 | 69 | 5/14/2024 |
8.4.0-rtm.24205.3 | 3,732 | 4/9/2024 |
8.3.0-rtm.24161.6 | 1,051 | 3/12/2024 |
8.2.0-rtm.24107.6 | 85 | 2/13/2024 |
8.1.0-rtm.24058.3 | 244 | 1/9/2024 |
8.0.0-rtm.23558.11 | 351 | 11/14/2023 |
8.0.0-rc.2.23510.2 | 107 | 10/10/2023 |
8.0.0-rc.1.23453.1 | 131 | 9/12/2023 |
8.0.0-preview.7.23407.5 | 116 | 8/8/2023 |
8.0.0-preview.6.23360.2 | 92 | 7/12/2023 |
8.0.0-preview.5.23308.3 | 80 | 6/14/2023 |
8.0.0-preview.4.23273.7 | 89 | 5/23/2023 |