Seemingly forever I've been working on a business idea, it's a REST API delivering content to mobiles, and I've never really had much idea about its performance. Yes, I have a suite of unit tests and integration tests, but these only tell me that it works, not how well it works. I was also about to embark on a major refactor, swapping the database from MongoDB to RavenDB, and was curious to see if that impacted performance at all, so I needed a profiler that supported IIS Express that I can run my ......
public static class DateTimeProvider { static Func<DateTime> nowFunc = () => DateTime.UtcNow; public static DateTime Now { get { return nowFunc(); } set { nowFunc = () => value; } } }By default it returns DateTime.UtcNow; override in your tests by callingDateTimeProvider.Now = DateTime.Today; ......