Vulthil.Messaging.TestHarness
1.0.0
dotnet add package Vulthil.Messaging.TestHarness --version 1.0.0
NuGet\Install-Package Vulthil.Messaging.TestHarness -Version 1.0.0
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="Vulthil.Messaging.TestHarness" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vulthil.Messaging.TestHarness" Version="1.0.0" />
<PackageReference Include="Vulthil.Messaging.TestHarness" />
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 Vulthil.Messaging.TestHarness --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vulthil.Messaging.TestHarness, 1.0.0"
#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 Vulthil.Messaging.TestHarness@1.0.0
#: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=Vulthil.Messaging.TestHarness&version=1.0.0
#tool nuget:?package=Vulthil.Messaging.TestHarness&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Vulthil.Messaging.TestHarness
An in-memory messaging transport for tests: runs your consumers with no broker and captures produced and consumed messages for assertion.
Install
dotnet add package Vulthil.Messaging.TestHarness
Quick start
builder.AddMessaging(messaging =>
{
messaging.ConfigureQueue("orders", q => q.AddConsumer<OrderCreatedConsumer>());
messaging.UseTestHarness(); // in place of a broker transport
});
var harness = host.Services.GetRequiredService<ITestHarness>();
harness.Published<OrderCreatedEvent>().ShouldHaveSingleItem();
harness.Consumed<OrderCreatedEvent>().ShouldHaveSingleItem();
For an integration test that keeps the production composition, swap the transport instead:
services.ReplaceTransportWithTestHarness().
Docs
Usage patterns: https://github.com/Vulthil/Vulthil.SharedKernel/tree/main/docs/articles/packages
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- SonarAnalyzer.CSharp (>= 10.27.0.140913)
- Vulthil.Messaging (>= 1.0.0)
-
net9.0
- SonarAnalyzer.CSharp (>= 10.27.0.140913)
- Vulthil.Messaging (>= 1.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 |
|---|---|---|
| 1.0.0 | 44 | 6/21/2026 |