Tag Archives: DI

More StructureMap

In the previous post I talked about strapping up StructureMap with Caliburn. There is actually a much nicer way strapping up the views and common stuff using conventions. private Registry GetRegistry() { var registry = new Registry(); registry.Scan(r => { r.Assembly(“WPFShared”); // Where we keep our common stuff r.TheCallingAssembly(); // Here are all our prsenters [...]

Strapping up StructureMap with Caliburn

We are using Caliburn in our current project. Its a great framwork and cuts away much plumbing. You can use all the common DI containers for setting up dependencies. We use Structuremap in other parts of the application. Here is how to set it up for use with Caliburn: (code tags a bit wierd) using [...]

Two nice tools for getting started with mocking and DI

Mocking and dependency injection can seem overwhelming the first time you read about and try to implement them. Two nice and clean frameworks are moq and ninject They are very easy to get into and both has good basic tutorials. For a beginner they cover what you want to do. I will try to show [...]