LevelUp.Bifrost.Testing
4.0.0
dotnet add package LevelUp.Bifrost.Testing --version 4.0.0
NuGet\Install-Package LevelUp.Bifrost.Testing -Version 4.0.0
<PackageReference Include="LevelUp.Bifrost.Testing" Version="4.0.0" />
<PackageVersion Include="LevelUp.Bifrost.Testing" Version="4.0.0" />
<PackageReference Include="LevelUp.Bifrost.Testing" />
paket add LevelUp.Bifrost.Testing --version 4.0.0
#r "nuget: LevelUp.Bifrost.Testing, 4.0.0"
#:package LevelUp.Bifrost.Testing@4.0.0
#addin nuget:?package=LevelUp.Bifrost.Testing&version=4.0.0
#tool nuget:?package=LevelUp.Bifrost.Testing&version=4.0.0
Strategos Testing
Use ExecutionHarness.Clock as the host's TimeProvider in a test. Advance it only after the worker reaches the test barrier. ControlledDelivery<T> lets the test choose delivery order and replay the same message ID and body.
Pass the harness as an ITransactionObserver when configuring a host that observes transaction checkpoints. To block a particular invocation, configure StopAt with its transaction, moment, invocation ID, and, for AfterWrite, write name. Wait for Reached, then continue the operation or interrupt it. Each barrier stops one arrival.
An interruption before commit lets the host roll back. An interruption at AfterCommit exercises a lost response after state has committed. Keep persisted state across host replacement and redeliver the original message to exercise restart recovery.
For compiled local schedules, register a shared FakeTimeProvider as the host's
TimeProvider and construct LocalSchedulerHarness with the host's
LocalScheduleDelivery. AdvanceAsync advances that clock and runs due work.
FireDueJobsAsync keeps the current instant. Both wait for the deployed local
pools to settle. WaitForIdleAsync also accepts a real-time timeout, so an
unreleased handler can fail the test while the simulated clock is stationary.
To observe local calendar changes, register a LocalScheduleEventLog with a
bounded capacity in the execution host. Read or follow one exact schedule
scope using Read or Observe. Resume from the returned cursor and handle
LostHistory when the process has evicted older entries. Calendar notices
include committed lifecycle changes, manual triggers, counted misses and
delivery results. ObserveFaults reports delivery faults for a trusted host
operator. Use the journal's occurrence history for retained work IDs and
PostgreSQL history across process restarts. Application authorization still
owns access to schedule operations.
| 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
- LevelUp.Strategos (>= 4.0.0)
- Microsoft.Extensions.TimeProvider.Testing (>= 10.1.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 |
|---|---|---|
| 4.0.0 | 41 | 12/5/2026 |