At the bottom of this page is the following code:
Code:
DependencyResolver.Current= new MyDependencyResolver();
Any old developer with OCD who pounds out every line of code she finds in a book or on a subway restroom wall will quickly discover that Current is a read only property. Wild Rabbits! I think the code should look like this
Code:
DependencyResolver.SetResolver(new MyDependencyResolver());
And everything is kittens and sunshine. Am I correct or are those lion cubs and thunderstorms about to roll in?
O Great Brad Wilson, Lord of Dependency Injection, Author of the Chapter, answer me! Speak, for thy maidservant trembles in anticipation. Or maybe not, but that sounded good.