public void TestControllerClassAttributes() { ControllerReflection.ControllerInherits("ApplicationController"); ControllerReflection.ClassExpectedAttribute <AutoValidateAntiforgeryTokenAttribute>(2); ControllerReflection.ClassExpectedAttribute <ControllerAttribute>(2); }
public void TestControllerClassAttributes() { ControllerReflection.ControllerInherits("ApplicationController"); var authAttribute = ControllerReflection.ClassExpectedAttribute <AuthorizeAttribute>(3); authAttribute.ElementAt(0).Roles.ShouldBeNull(); ControllerReflection.ClassExpectedAttribute <AutoValidateAntiforgeryTokenAttribute>(3); ControllerReflection.ClassExpectedAttribute <ControllerAttribute>(3); }
public void TestControllerClassAttributes() { ControllerReflection.ControllerInherits("Controller"); ControllerReflection.ClassExpectedAttribute <ControllerAttribute>(1); }