One of the new features that is part of the next release of StructureMap 2.5 is a AutoMocking Container. What is an AutoMocking Container, well per Jacob over at Eleutian an AutoMocker is AutoMockingContainer is simply a IoCContainer with a custom facility and dependency resolver that supplies a Mock...
I have been giving the AutoMocker that is part of StructureMap 2.5 a go lately. Today I was trying to setup my test and I get running into the following error: failed: StructureMap.StructureMapException: StructureMap Exception Code: 230 Cannot call "FillDependencies" on type IGatheringPipeline...
One of the really great things about the ASP.Net MVC framework is how extendable it is. One area of extension is in the area of controller creation. The framework allows you to replace the default ControllerFactory with your own factory and because of this we can incorporate Inversion of Control/Dependency...
It appears that with the new release of StructureMap 2.4.9 (aka 2.5) the usage of ObjectFactory.ResetDefaults() has been replaced by ObjectFactory.Reset(). Now why is this important? I used .ResetDefaults() in my unit tests when I wanted to reset the plugin graph (is that the correct term?) because I...
With the most recent drop of StrcutreMap (2.4.9 -- aka 2.5) you now have the ability to put your wiring information inside the app.config file. Prior to this you needed to either use the StructureMap.config file or wire your dependencies up in code. So today I thought I would simply review how to use...