Tag Archive - Mocking

How to Use a Factory Method With Castle / WindsorContainer

2 April 2010 by Sean, No Comments

In my last post, I showed you the wonder of the WindsorContainer and creating concrete objects from a config file… but I wasn’t done yet. In fact, if you looked at my example and used your keen sense of observation (I’m suspending my disbelief) you might have noticed a little somethin’ somethin’ in the config [...]

Castle, Rhino, Mocking, and Possibly You

1 April 2010 by Sean, No Comments

So here’s the issue, you have a class that you new up within a class. class SomeClass { private HelperClass someHelperClass; public SomeClass() { someHelperClass = new HelperClass(); } public String DoSomething() { return someHelperClass.DoSomeThing(); } } You with me? Cause if you’re not, you’ve probably made a serious error in career choice. Now what’s [...]