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 ...
|
8
shouts |
|
|||
No comments yet, be the first one to post comment.