Timekeepers are a more testable alternative to DateTime.now
or new DateTime()
.
Timekeepers are a more testable alternative to DateTime.now
or new DateTime()
. Most applications will use
SystemTimekeeper in production and TestingTimekeeper in time-sensitive unit tests.