Geeks With Blogs

.Nettuce Code Salad October 2012 Entries
Redgate ANTS Performance Profiler
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 ......

Posted On Thursday, October 11, 2012 12:03 PM

A DateTime provider to help unit test DateTime
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; ......

Posted On Wednesday, October 10, 2012 8:26 PM

Copyright © Jon Canning | Powered by: