Esempio n. 1
0
        public void Delete_should_be_HttpDelete_and_allow_admins()
        {
            string methodName    = nameof(PagesController.Delete);
            Type   attributeType = typeof(HttpDeleteAttribute);

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