Namespace DynaSharp.Coordination.Testing
Classes
- LockState
What the item of a lock says, as GetStateAsync(LockTable, string, CancellationToken) reads it, so a test asserts on a lock without knowing the format of its item. A record, so a test compares it with one it builds:
new LockState(IsHeld: true, HolderLabel: "pod-a", LeaseDuration: TimeSpan.FromSeconds(30), FencingToken: 2).
- LockTableTesting
What other processes do to a lock, for tests: hold it, release it, delete its item; and what a test looks at: the state of a lock, and a contender that was turned away.