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 the email, [...]
August 27, 2008
Posted in

content rss
