ASP.NET Core – Unit testing IAuthorizationService and dependencies inside of your controller

added by DotNetKicks
2/13/2018 2:36:36 PM

3 Kicks, 194 Views

You have a controller that makes use of IAuthorizationService and you have a custom requirement - implementation of IAuthorizationRequirement. You might also have your custom handler which is an implementation of IAuthorizationHandler.