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