public void GetNumberOfPeriodsInYear_365DayYearPolicy_Returns365()
        {
            var date       = new DateTime(2013, 6, 7);
            var policy     = new DailyPeriodPolicy();
            var yearPolicy = new ThreeHundredSixtyFiveDayYearPolicy();

            Assert.That(policy.GetNumberOfPeriodsInYear(date, yearPolicy), Is.EqualTo(365));
            date = new DateTime(2012, 6, 7);
            Assert.That(policy.GetNumberOfPeriodsInYear(date, yearPolicy), Is.EqualTo(365));
        }
        public void GetNumberOfPeriodsInYear_ActualDayYearPolicy_ReturnsActualNumberOfDays()
        {
            var date       = new DateTime(2013, 6, 7);
            var policy     = new DailyPeriodPolicy();
            var yearPolicy = new ActualNumberOfDayYearPolicy();

            Assert.That(policy.GetNumberOfPeriodsInYear(date, yearPolicy), Is.EqualTo(365));
            date = new DateTime(2012, 6, 7);
            Assert.That(policy.GetNumberOfPeriodsInYear(date, yearPolicy), Is.EqualTo(366));
        }