Ejemplo n.º 1
0
        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
            }));
        }
Ejemplo n.º 2
0
        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
            }));
        }
Ejemplo n.º 3
0
        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
            }));
        }
Ejemplo n.º 4
0
        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
            }));
        }
Ejemplo n.º 5
0
        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
            }));
        }
Ejemplo n.º 6
0
        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
            }));
        }
Ejemplo n.º 7
0
        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
          }));
        }
Ejemplo n.º 8
0
        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
          }));
        }
Ejemplo n.º 9
0
        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
          }));
        }
Ejemplo n.º 10
0
        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
          }));
        }
Ejemplo n.º 11
0
        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
          }));
        }
Ejemplo n.º 12
0
        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
          }));
        }