Namespace KZDev.SystemClock.PrimeTime.Testing
Classes
- PrimeTestClock
System Clock partial of PrimeTestClock: BCL DateTimeOffset virtual storage and PrimeTestClockEvent payloads for ClockEvents.
- PrimeTestClockEvent
Base type for observability events raised on ClockEvents.
- PrimeTestClockNewTimeEvent
PrimeTestClockTimedEvent raised when virtual time advances to a new instant.
- PrimeTestClockServiceCollectionExtensions
Extension methods for adding PrimeTime virtual test clock services to an IServiceCollection.
- PrimeTestClockStartedEvent
PrimeTestClockTimedEvent raised when the automatic runner starts from a stopped state.
- PrimeTestClockStoppedEvent
PrimeTestClockTimedEvent raised after Stop() stops a running clock.
- PrimeTestClockTimedEvent
PrimeTestClockEvent that carries virtual clock time and an optional runner rate.
- PrimeTestTimeBase
BCL virtual-time storage and event args for PrimeTestTimeBase.
Interfaces
- IPrimeTestClock
Extends IPrimeTestTime and IPrimeClock with deterministic virtual time for tests: set the current instant, advance or jump forward with event marching, and optionally run a deadline-driven background runner at a validated rate. Delays, time-based cancellation, interval timers, and day-time timers are evaluated against the same virtual timeline.
- IPrimeTestTime
Extends IPrimeTime with test-controlled time support for clock implementations used in tests.
Enums
- PrimeTestClockEventType
Discriminator for kinds of PrimeTestClockEvent raised on ClockEvents.
Delegates
- PrimeTestClockEventHandler
Represents the method that handles ClockEvents.