The DateTime construct has the disadvantage that testing can become very difficult. Especially in cases where DateTime.Now, DateTime.Utc or for example DateTime.Today is used. These methods lead to UnitTest not being possible or breaking after a certain date. By using an adapter, a facade can be injected at runtime via Dependency Injection (DI). For testing, a mock can be used to make the functionality testable.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Nov 14, 2025
Get Started
$ dotnet add package Sitewerk.DateTimeProvisioningReadme
No README available.