.NET DateTime is nondeterministic - make DateTime testable How do you make DateTime testable in .NET? Once you use DateTime.UtcNow in the body of a method and you did not pass it as a parameter you no longer have control