ivaylokenov/MyTested.AspNetCore.Mvc

About RestrictingForAuthorizedRequests() method

MartinPetrovIT opened this issue · 0 comments

Describe your issue
RestrictingForAuthorizedRequests() does not work if [Authorize] attribute is of the whole controller

Additional context
This is the error message:
When calling RandomAction action in RandomController expected action to have at least 1 attribute, but in fact none was found.

I'm not sure if this is a real bug or I'm making something wrong, but when I positioned attribute over action the test passed.