blog.maartenballiauw.be
TimeProvider and the End of Untestable DateTime.Now | Maarten Balliauw {blog}
DateTime.Now is one of those calls that looks harmless until you try to write a test around it. It’s a static property that reads the system clock, and there’s no way to control what it returns withou...