TestRuntimeType
PackageAxial.PlatformService
Helpers for constructing deterministic test environments.
Specification
Kind
Type
Members
8
Examples
0
createSignature
TestRuntime.create startUtc
layerSignature
TestRuntime.layer startUtc
``.ctor``Signature
TestRuntime(startUtc)
ClockSignature
this.Clock
GuidSignature
this.Guid
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| create | TestRuntime.create startUtc | Creates a deterministic test environment whose clock starts at the supplied instant. |
| layer | TestRuntime.layer startUtc | Builds a deterministic test environment as a layer. |
| ``.ctor`` | TestRuntime(startUtc) | No description available. |
| Clock | this.Clock | The manual clock; advance it with AdvanceBy or AdvanceToNextDeadline. |
| Guid | this.Guid | The GUID service; assign a scripted generator such as Guid.fromSequence. |
| Random | this.Random | The random service; assign a scripted generator such as Random.fromSequence. |
| EnvironmentVariables | this.EnvironmentVariables | The environment-variable service; assign an in-memory provider such as EnvironmentVariables.fromPairs. |
| Log | this.Log | The recording logger; inspect Entries after a run. |

