Beispiel #1
0
        public void Add_should_be_HttpPost_and_allow_editors()
        {
            string methodName    = nameof(PagesController.Add);
            Type   attributeType = typeof(HttpPostAttribute);

            _pagesController.ShouldHaveAttribute(methodName, attributeType);
            _pagesController.ShouldAuthorizeEditors(methodName);
        }