namespace ClawdDotNet.Core.Tests.Infrastructure; /// /// A controllable for the time-dependent tests (R2 of the /// test strategy). Deliberately lean: the tests drive the scanner directly via /// ScanOnceAsync, they only need a fixed, adjustable clock. /// internal sealed class FakeTimeProvider : TimeProvider { private DateTimeOffset _now; public FakeTimeProvider(DateTimeOffset start) => _now = start; public override DateTimeOffset GetUtcNow() => _now; public void SetUtcNow(DateTimeOffset value) => _now = value; public void Advance(TimeSpan delta) => _now += delta; }