XBullet.EasyTesting
1.0.3
See the version list below for details.
dotnet add package XBullet.EasyTesting --version 1.0.3
NuGet\Install-Package XBullet.EasyTesting -Version 1.0.3
<PackageReference Include="XBullet.EasyTesting" Version="1.0.3" />
<PackageVersion Include="XBullet.EasyTesting" Version="1.0.3" />
<PackageReference Include="XBullet.EasyTesting" />
paket add XBullet.EasyTesting --version 1.0.3
#r "nuget: XBullet.EasyTesting, 1.0.3"
#:package XBullet.EasyTesting@1.0.3
#addin nuget:?package=XBullet.EasyTesting&version=1.0.3
#tool nuget:?package=XBullet.EasyTesting&version=1.0.3
XBullet.EasyTesting
Reusable infrastructure for integration-testing authenticated ASP.NET Core applications through an in-memory TestServer.
The package targets .NET 8 and .NET 10.
Install
dotnet add package XBullet.EasyTesting
Example
using var factory = EasyTestHost.Create<Program>()
.ConfigureServices(services =>
{
services.RemoveAll<IClock>();
services.AddSingleton<IClock>(new FakeClock());
})
.Build();
using var client = factory.Client()
.AsUser(user => user
.WithName("Ada")
.WithRole("Administrator"))
.Build();
using var response = await client.GetAsync("/api/orders");
response.EnsureSuccessStatusCode();
The fluent host also supports configuration overrides, authentication profiles, per-test scenario isolation, and arrange-and-request workflows. Scenario results provide test-framework-agnostic status, header, success, and generic structural JSON body assertions through result.Should().
See the repository documentation for complete examples.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.Authentication.JwtBearer (>= 10.0.11)
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.11)
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.30)
- Microsoft.AspNetCore.Mvc.Testing (>= 8.0.31)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on XBullet.EasyTesting:
| Package | Downloads |
|---|---|
|
XBullet.EasyTesting.Http
Fluent outbound HTTP stubs for integration-test hosts. |
|
|
XBullet.EasyTesting.EntityFrameworkCore
Generic Entity Framework Core database actions for authenticated integration-test hosts. |
|
|
XBullet.EasyTesting.Messaging
Transport-neutral message recording for integration-test hosts. |
|
|
XBullet.EasyTesting.Azure
Deterministic Azure SDK responses, credentials, paging, and pipeline transport for tests. |
|
|
XBullet.EasyTesting.Aspire
Closed-box distributed application testing helpers for Aspire. |
GitHub repositories
This package is not used by any popular GitHub repositories.