title: How to unit-test an MVC controller action which depends on authentication in c#?
body: <p>I'd like to write (in c#) a unit-test for an MVC controller action which might return one view or the other, depending on whether the request is authenticated. How can this be done?</p>