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
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 [...]
Dictionary Index Lookup Vs Contains Key Vs List Contains Vs Linq… Speed Test/Texas Tornado Match
Ok so with MVC comes the use of Routes which calls in the need to compare request values to see which route to use. Now before I even bother with that headache (Although it’s getting better AND will be a post) I ran into a situation where I would have to check a passed in [...]
Filling a Private Field on a Base Class Using Reflection
Ok here’s the next step in this testing kick. So now you have your test classes that create classes. Swell. Problem is, there are private fields on the base class of whatever class you are creating. So you’re screwed, right? Not really. Now what I am about to do is nothing new. It’s just basically [...]
Mulitple Constraint Generics and Test Base Classes
This was basically an idea I had to have test classes inherit a TestBase that has a Static Create method on it. The reason for this is that I have found it easier to have a Create method that takes care of creating a temporary class of the type the test represents. Say I have [...]