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" />
                    
Directory.Packages.props
<PackageReference Include="Compze.Tessaging.Hosting.Testing" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Compze.Tessaging.Hosting.Testing&version=0.5.0-alpha&prerelease
                    
Install as a Cake Tool

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 wiringCurrentTestsConfiguredSqlLayer() 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 from CurrentTestsEndpointTransport() in Compze.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
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 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.

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