Geeks With Blogs


Post Categories

Zackary Geers blog August 2008 Entries
InjectStub with Castle Windsor
I'm used to working with StructureMap, and so I do part of my testing by passing in a stub to override the configured behavior by using StructureMap.ObjectFactory.... >(myMockedObject); I looked hard to find a simular behavior for Windsor, and I finally found it. I tried to do: IWindsorContainer container = new WindsorContainer(); BooReader.Read(container, ""); container.Kernel.AddCompone... Assert.That(container.Resol... ......

Posted On Friday, August 22, 2008 12:07 AM

Copyright © Zackary Geers | Powered by: