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 })); }
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 })); }
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 })); }
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 })); }
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 })); }