My attributes fire when debugging locally using the Composer tab in Fiddler, but when I attempt to write a unit test it does not fire the [Authorize] attribute on my method.
This code does not run my Authorize attribute on my request.
[TestMethod]
public void TestGet()
{
var controller = new UtilityRateController(/* need a repository here */);
// act
var result = controller.Get("92128");
}
Go to the complete details ...