public void Add_should_be_HttpPost_and_authorize_policy() { string methodName = nameof(PagesController.Add); Type attributeType = typeof(HttpPostAttribute); _pagesController.ShouldHaveAttribute(methodName, attributeType); _pagesController.ShouldAuthorizePolicy(methodName, PolicyNames.AddPage); }