Cross-track examples
These pages cover testing patterns that look the same on both production stacks. Each page presents the System Clock and PrimeTime (NodaTime) variants side-by-side so readers do not have to switch between tracks.
Pages
- DI replacement with
AddPrimeTestClock— substitute virtual time in a Microsoft DI container soIPrimeClockconsumers resolve a sharedPrimeTestClock. - Test-clock control APIs —
Set*,Advance,RunFor,Start/Stopreference patterns.
For stack-specific examples (interval timers, time-of-day, DST, sleep / delay / cancellation), see each track's examples folder: