Compze.Tessaging.Hosting.Testing
0.5.0-alpha
This is a prerelease version of Compze.Tessaging.Hosting.Testing.
dotnet add package Compze.Tessaging.Hosting.Testing --version 0.5.0-alpha
NuGet\Install-Package Compze.Tessaging.Hosting.Testing -Version 0.5.0-alpha
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="Compze.Tessaging.Hosting.Testing" Version="0.5.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Compze.Tessaging.Hosting.Testing" Version="0.5.0-alpha" />
<PackageReference Include="Compze.Tessaging.Hosting.Testing" />
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 Compze.Tessaging.Hosting.Testing --version 0.5.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Compze.Tessaging.Hosting.Testing, 0.5.0-alpha"
#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 Compze.Tessaging.Hosting.Testing@0.5.0-alpha
#: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=Compze.Tessaging.Hosting.Testing&version=0.5.0-alpha&prerelease
#tool nuget:?package=Compze.Tessaging.Hosting.Testing&version=0.5.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Compze.Tessaging.Hosting.Testing
Testing support for Compze Tessaging hosting.
What is Compze?
Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more
What's in this package?
The endpoint host tests use, plus the per-tier test wiring it hands each endpoint:
TestingEndpointHost— builds registered endpoint-declarations in the current test's environment: the host's one tessages-in-flight tracker, the current test's transport protocol and serializers, the pooled test database keyed by the endpoint's id (exactly-once tier), and participation in the host's own interprocess registry. The same declaration class production hosts is what tests register, so production and tests host the same endpoint by construction. On dispose the host waits until no tessages are in flight and rethrows background exceptions — so tests cannot silently drop in-flight work.TypermediaTestClient— the pure client composed for tests (see the Typermedia README beside this one).- Persistence test wiring —
CurrentTestsConfiguredSqlLayer()registers the Tessaging vertical's storage stack (type-id interner, document db, tessaging inbox/outbox, tevent store) against the SQL backend the current test runs against. (The endpoint's transport protocol comes fromCurrentTestsEndpointTransport()inCompze.Hosting.Testing.)
Quick start
class MyEndpointDeclaration : ExactlyOnceEndpointDeclaration<MyEndpointDeclaration>, IEndpointIdentity
{
public static string Name => "MyEndpoint";
public static EndpointId Id { get; } = new(Guid.Parse("..."));
protected override void RegisterExactlyOnceTommandHandlers(IExactlyOnceTommandHandlerRegistrar handle) =>
handle.ForTommand(async (MyTommand tommand, IUnitOfWorkResolver unitOfWork) => await HandleAsync(tommand));
}
using var host = TestingEndpointHost.Create();
var endpoint = host.RegisterEndpoint(new MyEndpointDeclaration());
await host.StartAsync();
Installation
dotnet add package Compze.Tessaging.Hosting.Testing
Related packages
| Package | Description |
|---|---|
| Compze.Hosting.Testing | The testing endpoint host this feature plugs into |
| Compze.Tessaging | Messaging infrastructure |
| Compze.Tessaging.Hosting.AspNetCore | ASP.NET Core hosting |
License
Apache-2.0
| Product | Versions 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.
-
net10.0
- Compze.Abstractions (>= 0.3.0-alpha)
- Compze.Contracts (>= 0.7.1)
- Compze.DependencyInjection (>= 0.8.0-alpha)
- Compze.DocumentDb.MicrosoftSql (>= 0.2.1-alpha)
- Compze.DocumentDb.MySql (>= 0.2.1-alpha)
- Compze.DocumentDb.PostgreSql (>= 0.2.1-alpha)
- Compze.DocumentDb.Sqlite (>= 0.2.1-alpha)
- Compze.Hosting.Testing (>= 0.3.0-alpha)
- Compze.Internals.SystemCE (>= 0.4.0-internal)
- Compze.Internals.Testing (>= 0.1.1-alpha)
- Compze.Sql.MicrosoftSql (>= 0.4.0-alpha)
- Compze.Sql.MySql (>= 0.4.0-alpha)
- Compze.Sql.PostgreSql (>= 0.4.0-alpha)
- Compze.Sql.Sqlite (>= 0.4.0-alpha)
- Compze.Tessaging (>= 0.5.0-alpha)
- Compze.Tessaging.MicrosoftSql (>= 0.3.0-alpha)
- Compze.Tessaging.MySql (>= 0.3.0-alpha)
- Compze.Tessaging.PostgreSql (>= 0.3.0-alpha)
- Compze.Tessaging.Sqlite (>= 0.3.0-alpha)
- Compze.Tessaging.Transport.AspNetCore (>= 0.3.0-alpha)
- Compze.Teventive.TeventStore.Abstractions (>= 0.5.0-alpha)
- Compze.Teventive.TeventStore.MicrosoftSql (>= 0.2.1-alpha)
- Compze.Teventive.TeventStore.MySql (>= 0.2.1-alpha)
- Compze.Teventive.TeventStore.PostgreSql (>= 0.2.1-alpha)
- Compze.Teventive.TeventStore.Sqlite (>= 0.2.1-alpha)
- Compze.Threading (>= 0.9.0-alpha)
- Compze.TypeIdentifiers.Interning.MicrosoftSql (>= 0.2.1-alpha)
- Compze.TypeIdentifiers.Interning.MySql (>= 0.2.1-alpha)
- Compze.TypeIdentifiers.Interning.PostgreSql (>= 0.2.1-alpha)
- Compze.TypeIdentifiers.Interning.Sqlite (>= 0.3.0-alpha)
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 |
|---|---|---|
| 0.5.0-alpha | 76 | 7/24/2026 |
| 0.4.0-alpha | 68 | 7/15/2026 |
| 0.3.0-alpha | 75 | 6/4/2026 |
| 0.2.0-alpha.1 | 92 | 2/28/2026 |
| 0.1.0-alpha.3 | 84 | 2/13/2026 |
| 0.1.0-alpha.2 | 81 | 2/12/2026 |
| 0.1.0-alpha.1 | 84 | 2/12/2026 |