示例#1
0
        public void Rename_should_be_HttpPut_and_authorize_policy()
        {
            string methodName    = nameof(TagsController.Rename);
            Type   attributeType = typeof(HttpPutAttribute);

            _tagsController.ShouldHaveAttribute(methodName, attributeType);
            _tagsController.ShouldAuthorizePolicy(methodName, PolicyNames.RenameTag);
        }