I have simple asp.net mvc application which uses custom membership
and role provider
. After setting all in place I use [Authorize]
inside controller actions to allow/deny access to certain user groups. Now I want to move further and try to unit test every controller which uses [Authorize]
attribute.
I was thinking to use Unity Ioc and Moq. Any good suggestion from where to start, basic steps with some code examples or tutorials to share?
Thanks