
Commit by Commit
TimeProvider and FakeTimeProvider - Improving Recurring Tasks Manager Project
This post showcases the use of the TimeProvider abstraction in C#, focusing on its two implementations: TimeProvider.System, a replacement for DateTime.UtcNow, and FakeTimeProvider, which allows precise date and time control in unit tests. The project used as a practice ground is the Recurring Tasks Manager, first introduced in