Category Archives: Dependency Injection

Presentation Materials from TCCC9

If you attended my advanced Android presentation at the Twin Cities Code Camp 9, you can find the presentation located below. Advanced android View more presentations from donnfelker.

TypeMock 5.3.5 – WasCalledWithArguments

I normally do not blog bile by reposting another sites news, but this news is rather importnat in regards to TDD with Isolator. I use Rhino Mocks 80% of the time for mocking, but that last 20% is Isolator. Why 20% – this is the real tough stuff to test. SharePoint, Silverlight, Tightly Coupled Legacy…

Auto-Creating Your DB with Active Record

During some recent development the team I was experiencing some friction with databases and developing. We were using Castle Active Record and we soon realized that as new people joined the team, left the team (rinse, wash, repeat), db changes occurred in the Active Record Schema etc, that the set up time to going was…

ASP.NET MVC – Windsor Container Controller Factory

Here is a simple class that allows you to use a container to register and resolve your instances of controllers. You’d want to do this if you inject dependencies into your controller via constructor injection. Controller Example: public class AdminController : Controller { private readonly ILocalDbManager _localDbManager; public AdminController(ILocalDbManager localDbManager) { _localDbManager = localDbManager; }…

Unit Testing you Container Dependencies

When developing with an inversion of control container (I use Windsor) its sometimes difficult to detect if your instances in your container are creatable or not. A lot of times this is determined when you run the app, you’ll get an exception informing you that your object does not have all of its dependencies fulfilled….