deletePost() private method

private deletePost ( string appKey, string postid, string userName, string password, bool publish ) : bool
appKey string
postid string
userName string
password string
publish bool
return bool
示例#1
0
        public void DeletePost_ExistingEntry()
        {
            // Create entry
            var entryContent = new XmlRpcStruct();

            entryContent.Add("title", "the title");
            entryContent.Add("description", "the description");

            var newId = m_api.newPost(m_blog1.ID.ToString(), m_userAuthor.Name, PASSWORD, entryContent, false);

            Assert.IsNotNullOrEmpty(newId);

            // Delete the entry
            var result = m_api.deletePost("test", newId, m_userAuthor.Name, PASSWORD, false);

            Assert.IsTrue(result);
        }