One of the really great things about the latest release of StructureMap is that I do not need to register objects by default if they follow a standard convention (i.e. if I want to register a controller called ‘AuthorController’ and accessed via ‘AuthorController’ I do not need to do anything, SM is...
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...
Today I was putting together a test app for a few presentations I am doing in the coming weeks (announcements on these coming soon). While doing this I kept getting a 101 exception when trying to build an object via StructureMap's ObjectFactory (error information here ). Error message Assembly...
What do you do when you are writing a test for a piece of code that calls out to an ‘out of your control’ service such as a web service or email server? If you are like most of us, you simply allow your test to make the call and ‘hope’ that the service is up. However, this is really bad. Having your...
Have ever wanted to use a concrete class as both the the PluginFamily and Plugable (information on StructureMap's attributes here ) type in StructureMap ? I know I have, just today in fact (not the first time, but thought I would post about it this time) I needed to do just this. Why would I want to...