public void ControllerHasAuthorizeAtttributeWithTheCorrectPolicy()
 {
     var controller = new SiteController(null, null, null);
     var attribute = controller.GetAttributes().OfType<AuthorizeAttribute>().SingleOrDefault();
     Assert.NotNull(attribute);
     Assert.Equal(attribute.Policy, "SiteAdmin");
 }
 public void ControllerHasAreaAtttributeWithTheCorrectAreaName()
 {
     var controller = new SiteController(null, null, null);
     var attribute = controller.GetAttributes().OfType<AreaAttribute>().SingleOrDefault();
     Assert.NotNull(attribute);
     Assert.Equal(attribute.RouteValue, "Admin");
 }