getUsersBlogs() private method

private getUsersBlogs ( string appKey, string username, string password ) : CookComputing.XmlRpc.XmlRpcStruct[]
appKey string
username string
password string
return CookComputing.XmlRpc.XmlRpcStruct[]
Example #1
0
        public void GetUsersBlogs_ValidUserMultiple()
        {
            var result = m_api.getUsersBlogs("test", m_userAuthor.Name, PASSWORD);

            Assert.That(result.Select(x => x["blogid"]), Is.EquivalentTo(new[]
            {
                m_blog1.ID.ToString(),
                m_blog2.ID.ToString()
            }));
        }
Example #2
0
        public void GetUsersBlogs_ValidUserMultiple()
        {
            var result = m_api.getUsersBlogs("test", m_userAuthor.Name, PASSWORD);

            Assert.AreEqual(2, result.Length);

            var ids = (from entry in result
                       select entry["blogid"] as string).ToArray();

            Assert.Contains(m_blog1.ID.ToString(), ids);
            Assert.Contains(m_blog2.ID.ToString(), ids);
        }