public void BuildTitleIsYearWhenYearIsAboveZero()
        {
            var title = new HomepageTitleFactory().BuildTitle(new HomepageParameters
            {
                Year = 1,
                Month = 0
            });

            Assert.That(title, Is.EqualTo("1"));
        }
        public void BuildTitleIsMonthAndYearWhenBothAboveZero()
        {
            var title = new HomepageTitleFactory().BuildTitle(new HomepageParameters
            {
                Year = 1,
                Month = 1
            });

            Assert.That(title, Is.EqualTo("January 1"));
        }
        public void BuildTitleIsEmptyWhenMonthAndYearAreZero()
        {
            var title = new HomepageTitleFactory().BuildTitle(new HomepageParameters
                                                                  {
                                                                      Year = 0,
                                                                      Month = 0
                                                                  });

            Assert.That(title, Is.EqualTo(string.Empty));
        }
        public void BuildTitleIsMonthAndYearAndTagWhenBothAboveZeroAndTagIsATag()
        {
            var title = new HomepageTitleFactory().BuildTitle(new HomepageParameters
            {
                Year = 1,
                Month = 1,
                Tag = "ATag"
            });

            Assert.That(title, Is.EqualTo("January 1 - tagged ATag"));
        }
        public void BuildTitleIsMonthAndYearAndCategoryWhenBothAboveZeroAndCategoryIsACategory()
        {
            var title = new HomepageTitleFactory().BuildTitle(new HomepageParameters
            {
                Year = 1,
                Month = 1,
                Category = "ACategory"
            });

            Assert.That(title, Is.EqualTo("January 1 - ACategory"));
        }