Sylin.Koan.Jobs.Testing
0.20.2
dotnet add package Sylin.Koan.Jobs.Testing --version 0.20.2
NuGet\Install-Package Sylin.Koan.Jobs.Testing -Version 0.20.2
<PackageReference Include="Sylin.Koan.Jobs.Testing" Version="0.20.2" />
<PackageVersion Include="Sylin.Koan.Jobs.Testing" Version="0.20.2" />
<PackageReference Include="Sylin.Koan.Jobs.Testing" />
paket add Sylin.Koan.Jobs.Testing --version 0.20.2
#r "nuget: Sylin.Koan.Jobs.Testing, 0.20.2"
#:package Sylin.Koan.Jobs.Testing@0.20.2
#addin nuget:?package=Sylin.Koan.Jobs.Testing&version=0.20.2
#tool nuget:?package=Sylin.Koan.Jobs.Testing&version=0.20.2
Sylin.Koan.Jobs.Testing
Drive the real Koan Jobs engine deterministically from xUnit, NUnit, MSTest, or a custom test runner. The package contains no assertion framework and creates no second host.
dotnet add package Sylin.Koan.Jobs.Testing
Configure the existing test host, then obtain the driver from its service provider:
services.Configure<JobsOptions>(options =>
{
options.EnableWorker = false;
options.Mode = JobMode.Normal;
});
var driver = JobsTestDriver.From(host.Services);
await invoice.Job.Submit();
await driver.DrainAsync();
When a test owns a FakeTimeProvider, advance it and explicitly call TriggerDueAsync, ReapAsync,
or DrainAsync. RunStageAsync executes exactly one Entity-owned action and returns its production
JobRunResult, settled ledger record, and optional chain successor.
The driver intentionally exposes no orchestrator, scheduler, assertion API, host builder, clock, or storage substitute. Misconfigured background or inline execution is rejected with the required correction.
| 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Sylin.Koan.Jobs (>= 0.20.6 && < 0.21.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.