Here is the situation, my controller constructors take multiple interfaces as parameters. I do this in order to use constructor injection which allows me to inject the controllers with mocked objects in my unit tests. For example, my AccountController takes IEmailService, IFormsAuthentication and MembershipProvider (abstract class) as parameters. During my testing, I want to mock [...]
In my previous post, The Best IoC Container, I decided to go with StructureMap as the framework of choice. I received a comment telling me to check out Ninject and then a day or two after, I saw Corey Gaudin’s post on using Ninject with MVC, so I decided to try it out. It wasn’t [...]
As I previously mentioned in my post “The Best JavaScript Library“, I am in the process of developing an application/writing a book. I will be using asp.net MVC and a TDD approach to the application and book. As I have done with the JavaScript framework selection, I decided to look around and evaluate/review my options [...]
I spent a few days playing with Ruby on Rails a while back. During the learning experience, there was one particular feature that I really liked. It was the database migration scripts that get automatically generated for you. I always wished I had something like this in the windows (asp.net) world. It turns out there [...]
I am working on a feature that will let me import twitter messages to yonkly and wanted to write a test for it. The method is private and I couldn’t get the unit test to see it. I also didn’t want to use the private accessor class generate by Visual Studio because I was mocking [...]
Wednesday, August 27, 2008
View Comments