Testing code that uses .NET's `DateTime.Now` sucks!!!! This is how to mock them, to properly validate DateTime when writing unit tests. The SimpleDateTimeProvider NuGet package is available on NuGet.org to help you with this in the future.
Stephen Walsh
@stphnwlsh
Hello! I’m a Husband, Father, Moustache Grower, Liverpool Fan, Software Engineer, Constant Learner and Team Leader.