Compze.Tessaging.Hosting.Testing
0.7.0-alpha
dotnet add package Compze.Tessaging.Hosting.Testing --version 0.7.0-alpha
NuGet\Install-Package Compze.Tessaging.Hosting.Testing -Version 0.7.0-alpha
<PackageReference Include="Compze.Tessaging.Hosting.Testing" Version="0.7.0-alpha" />
<PackageVersion Include="Compze.Tessaging.Hosting.Testing" Version="0.7.0-alpha" />
<PackageReference Include="Compze.Tessaging.Hosting.Testing" />
paket add Compze.Tessaging.Hosting.Testing --version 0.7.0-alpha
#r "nuget: Compze.Tessaging.Hosting.Testing, 0.7.0-alpha"
#:package Compze.Tessaging.Hosting.Testing@0.7.0-alpha
#addin nuget:?package=Compze.Tessaging.Hosting.Testing&version=0.7.0-alpha&prerelease
#tool nuget:?package=Compze.Tessaging.Hosting.Testing&version=0.7.0-alpha&prerelease
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 | net11.0 is compatible. |
-
net11.0
- Compze.Abstractions (>= 0.4.1-alpha)
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (>= 0.10.0-alpha)
- Compze.DocumentDb.MicrosoftSql (>= 0.3.0-alpha)
- Compze.DocumentDb.MySql (>= 0.3.0-alpha)
- Compze.DocumentDb.PostgreSql (>= 0.3.1-alpha)
- Compze.DocumentDb.Sqlite (>= 0.3.0-alpha)
- Compze.Hosting.Testing (>= 0.4.0-alpha)
- Compze.Internals.SystemCE (>= 0.10.0-internal)
- Compze.Internals.Testing (>= 0.3.1-alpha)
- Compze.Sql.MicrosoftSql (>= 0.6.0-alpha)
- Compze.Sql.MySql (>= 0.7.0-alpha)
- Compze.Sql.PostgreSql (>= 0.6.0-alpha)
- Compze.Sql.Sqlite (>= 0.6.0-alpha)
- Compze.Tessaging (>= 0.11.0-alpha)
- Compze.Tessaging.MicrosoftSql (>= 0.4.1-alpha)
- Compze.Tessaging.MySql (>= 0.4.1-alpha)
- Compze.Tessaging.PostgreSql (>= 0.4.1-alpha)
- Compze.Tessaging.Sqlite (>= 0.4.1-alpha)
- Compze.Tessaging.Transport.AspNetCore (>= 0.4.0-alpha)
- Compze.Teventive.TeventStore.Abstractions (>= 0.7.0-alpha)
- Compze.Teventive.TeventStore.MicrosoftSql (>= 0.4.0-alpha)
- Compze.Teventive.TeventStore.MySql (>= 0.4.0-alpha)
- Compze.Teventive.TeventStore.PostgreSql (>= 0.4.1-alpha)
- Compze.Teventive.TeventStore.Sqlite (>= 0.4.0-alpha)
- Compze.Threading (>= 0.13.0-alpha)
- Compze.TypeIdentifiers.Interning.MicrosoftSql (>= 0.3.0-alpha)
- Compze.TypeIdentifiers.Interning.MySql (>= 0.3.0-alpha)
- Compze.TypeIdentifiers.Interning.PostgreSql (>= 0.3.1-alpha)
- Compze.TypeIdentifiers.Interning.Sqlite (>= 0.4.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.7.0-alpha | 0 | 11/25/2026 |
| 0.6.0-alpha | 77 | 11/14/2026 |
| 0.5.1-alpha | 73 | 11/12/2026 |
| 0.5.0-alpha | 152 | 7/24/2026 |
| 0.4.0-alpha | 86 | 7/15/2026 |
| 0.3.0-alpha | 87 | 6/4/2026 |
| 0.2.0-alpha.1 | 109 | 2/28/2026 |
| 0.1.0-alpha.3 | 103 | 2/13/2026 |
| 0.1.0-alpha.2 | 96 | 2/12/2026 |
| 0.1.0-alpha.1 | 98 | 2/12/2026 |
- **Breaking: renamed for Microsoft.VisualStudio.Threading.Analyzers' VSTHRD200,** which asks a method that returns a task to end in Async: `TypermediaTestClient.ConnectTo` is `ConnectToAsync`, `AlsoConnectTo` is `AlsoConnectToAsync`, and `TestingEndpointHost.DisposeAsyncWithoutWaitingForEndpointsToBeAtRest` is `DisposeWithoutWaitingForEndpointsToBeAtRestAsync`.
- **Requires newer minor versions of other Compze packages:** Compze.DependencyInjection 0.10.0-alpha (was 0.9.0-alpha), Compze.Internals.SystemCE 0.10.0-internal (was 0.8.0-internal), Compze.Sql.MicrosoftSql 0.6.0-alpha (was 0.5.0-alpha), Compze.Sql.MySql 0.7.0-alpha (was 0.5.0-alpha), Compze.Sql.PostgreSql 0.6.0-alpha (was 0.5.0-alpha), Compze.Sql.Sqlite 0.6.0-alpha (was 0.5.0-alpha), Compze.Tessaging 0.11.0-alpha (was 0.9.0-alpha), Compze.Teventive.TeventStore.Abstractions 0.7.0-alpha (was 0.6.0-alpha), Compze.Teventive.TeventStore.MicrosoftSql 0.4.0-alpha (was 0.3.0-alpha), Compze.Teventive.TeventStore.MySql 0.4.0-alpha (was 0.3.0-alpha), Compze.Teventive.TeventStore.PostgreSql 0.4.1-alpha (was 0.3.0-alpha), Compze.Teventive.TeventStore.Sqlite 0.4.0-alpha (was 0.3.0-alpha), Compze.Threading 0.13.0-alpha (was 0.12.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.