Lyrics of "The Logical Song", by Supertramp
My attempts to change the world, one idea at a time.
Recently, after some analyzing some of the controllers I was building using ASP.NET MVC, I found that my controllers typically have the same pattern. They all have some dependencies injected into them through the constructor, each action calls a method on one of the dependencies (typically using the arguments of the and gets a result back), and depending on the result, an ActionResult is returned. Now, writing the tests wasn't tough. But, I dunno, I guess I'm REALLY lazy. So I started looking today...