Ejemplo n.º 1
0
        public void GetEntryComments_Entry11_WithLimit()
        {
            var comments = new Mod.CommentManager().GetEntryComments(m_entry11, 2);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment113.ID,
                m_comment112.ID
            }));
        }
Ejemplo n.º 2
0
        public void GetEntryComments_Entry21()
        {
            var comments = new Mod.CommentManager().GetEntryComments(m_entry21);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment211.ID,
                m_comment212.ID
            }));
        }
Ejemplo n.º 3
0
        public void GetEntryComments_WithLanguage_Entry11()
        {
            var deEntry  = m_entry11.Database.GetItem(m_entry11.ID, Language.Parse("de"));
            var comments = new Mod.CommentManager().GetEntryComments(deEntry);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_deComment111.ID
            }));
        }
Ejemplo n.º 4
0
        public void GetCommentsByBlog_Blog2_NoLimit()
        {
            var comments = new Mod.CommentManager().GetCommentsByBlog(m_blog2, int.MaxValue);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment211.ID,
                m_comment212.ID
            }));
        }
Ejemplo n.º 5
0
        public void GetCommentsByBlog_Blog1_Limited_ById()
        {
            var comments = new Mod.CommentManager().GetCommentsByBlog(m_blog1.ID, 4);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment122.ID,
                m_comment121.ID,
                m_comment113.ID,
                m_comment112.ID
            }));
        }
Ejemplo n.º 6
0
        public void GetEntryComments_Entry11_WithLimit()
        {
            var comments = new Mod.CommentManager().GetEntryComments(m_entry11, 2);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment113.ID,
                m_comment112.ID
            }));
        }
Ejemplo n.º 7
0
        public void GetEntryComments_Entry21()
        {
            var comments = new Mod.CommentManager().GetEntryComments(m_entry21);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
                m_comment211.ID,
                m_comment212.ID
            }));
        }
Ejemplo n.º 8
0
        public void GetEntryComments_WithLanguage_Entry11()
        {
            var deEntry = m_entry11.Database.GetItem(m_entry11.ID, Language.Parse("de"));
            var comments = new Mod.CommentManager().GetEntryComments(deEntry);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
              m_deComment111.ID
            }));
        }
Ejemplo n.º 9
0
        public void GetCommentsByBlog_Blog1_Limited_ById()
        {
            var comments = new Mod.CommentManager().GetCommentsByBlog(m_blog1.ID, 4);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
              m_comment122.ID,
              m_comment121.ID,
              m_comment113.ID,
              m_comment112.ID
            }));
        }
Ejemplo n.º 10
0
        public void GetCommentsByBlog_Blog2_NoLimit()
        {
            var comments = new Mod.CommentManager().GetCommentsByBlog(m_blog2, int.MaxValue);

            Assert.That(comments.Select(x => x.ID), Is.EquivalentTo(new[]
            {
              m_comment211.ID,
              m_comment212.ID
            }));
        }