Archive for June, 2010
Stubbing out ServiceLocator for unit testing
Wednesday, June 30th, 2010
There are certainly many ways to stub out dependency, using constructor injection, etc etc. Here is one way to quickly stub out ServiceLocator rather than implementing ServiceLocatorStub. Lets say you have code that uses a helper and the dependency is not quite the responsibility of that object but its the sub object that uses it. [...]
Json A circular reference was detected while serializing an object of type … in my asp mvc app
Wednesday, June 9th, 2010
I found this weird error when I was testing a no trivial test case in my app and was not able to find out what was wrong with it. It appears like a Json error in my asp mvc app, although the stack really doesn’t help ?View Code CSHARP1 2 3 4 5 6 7 [...]
