While working on an app recently I ran into the issue of needing to handle httpErrors at runtime in a dynamic fashion. I did this with some custom controller execution and routing. If a user were to …
NCover Hangs on Configuring Profiler…
Our main build broke today. We have about 53 projects in our solution (yes, its huge) and all of a sudden … pow … NAnt started timing out. Upon further investigation I noticed that the build was …
Continue Reading about NCover Hangs on Configuring Profiler… →
Finding App_Data Programmatically
While writing some code I needed to be able to access the the App_Data directory in my ASPNET MVC app. Doing this usually involves a Server.MapPath, but this wont work for my unit test. Here’s how …
IoC Auto Registration & Setter Injection
This post might be useful if you perform auto-registration of your components through an interface. Like this: …
Continue Reading about IoC Auto Registration & Setter Injection →
Featured in the Spaghetti Code Podcast
I was recently interviewed on the Spaghetti Code Podcast, hosted by Microsoft’s Jeff Brand. Jeff and I talked about Mocking and how it relates to the development process, testing process and your …
Continue Reading about Featured in the Spaghetti Code Podcast →
How to Use Rhinos AssertWasNotCalled
At times in the testing process you want to make sure that a certain method on a mocked object _does_not_ get called. For example, perhaps you’re performing some validation on a object and the object …
Continue Reading about How to Use Rhinos AssertWasNotCalled →