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...
I started playing with StructureMap recently. I am struggling with how to design my code's interaction with StructureMap when it comes to the configuration and use of plugin keys. If you have any insights or experience with this, please let me know! 1. Configuration via StructureMap.config Pros : * Separation...
Posted to
Lou Haskett
by
Louis Haskett
on 06-26-2007
Filed under: c#, Dependancy Injection, StructureMap, IoC, Design Considerations
This post is in response to Sam Gentile's post over at code better I'm Learning Rhino Mocks NHibernate StructureMap Policy Injection Blocks Log4Ne t (yea I know, what took so long. Answer, last few apps use the Logging App Block) MonoRail (about to start playing with that) Castle Windsor if I find time...
Since the new version of StructureMap came out a few weeks ago I have been playing around with it to see what it can do. So far I have been very impressed and have been very happy with the support I have received from Jeremy (the author) when I had questions/issues. During my exploring I have been looking...