public void GetBlogEntriesByMonthAndYear_Blog1_April2011() { var entries = new Mod.EntryManager().GetBlogEntriesByMonthAndYear(m_blog1, 4, 2011); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntries_Blog1_WithLimitAndCategory() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, 1, null, m_category12.Name, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntries_TagWithSpace() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, int.MaxValue, "tag with space", null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntryByCategorie_Blog2_Category1() { var entries = new Mod.EntryManager().GetBlogEntryByCategorie(m_blog2.ID, m_category21.Name); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry21.ID, m_entry22.ID })); }
public void GetBlogEntries_Blog1_WithTag() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, int.MaxValue, "tagb", null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry11.ID, m_entry12.ID })); }
public void GetBlogEntries_Blog2() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog2, int.MaxValue, null, null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry21.ID, m_entry22.ID, m_entry23.ID })); }
public void GetBlogEntriesByMonthAndYear_Blog1_April2011() { var entries = new Mod.EntryManager().GetBlogEntriesByMonthAndYear(m_blog1, 4, 2011); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntryByCategorie_Blog2_Category1() { var entries = new Mod.EntryManager().GetBlogEntryByCategorie(m_blog2.ID, m_category21.Name); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry21.ID, m_entry22.ID })); }
public void GetBlogEntries_Blog1_WithLimitAndCategory() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, 1, null, m_category12.Name, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntries_TagWithSpace() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, int.MaxValue, "tag with space", null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry13.ID })); }
public void GetBlogEntries_Blog1_WithTag() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog1, int.MaxValue, "tagb", null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry11.ID, m_entry12.ID })); }
public void GetBlogEntries_Blog2() { var entries = new Mod.EntryManager().GetBlogEntries(m_blog2, int.MaxValue, null, null, (DateTime?)null); Assert.That(entries.Select(x => x.ID), Is.EquivalentTo(new[] { m_entry21.ID, m_entry22.ID, m_entry23.ID })); }