8
shouts

ASP.NET MVC: A utility for testing secured Actions « Russell East’s blog

published 369 days, 9 hours, 44 minutes ago posted by beebee 370 days, 2 hours, 15 minutes ago
Thursday, February 05, 2009 1:00:10 PM GMT Wednesday, February 04, 2009 8:29:19 PM GMT

I have come across a common scenario while developing an ASP.NET MVC application. This being testing Actions that require the user to be authorised and / or requires permissions to execute methods  that are locked down with principal permissions. Here as an example of a controller with an action that is firstly decorated with the “Authorize” attribute (ASP.NET MVC filter) that requires the user to be in a specified role.[Authorize(Roles="Client Administrators")]public ViewResult Edit(int ...

category: ASP.NET | clicked: 1 | | source: russelleast.wordpress.com | show counter code
tags: ASPNETMVC, Unit Test