public void TestCalculateNextPeriodEndDateFrom_ReturnFromDate_IfStartDateIsNUll()
        {
            var period = new WeeklyRentalPeriod(1) { PeriodStartDate = null };

            DateTime periodEndDate = period.CalculateNextPeriodEndDateFrom(new DateTime(2009, 12, 1));

            Assert.AreEqual(new DateTime(2009, 12, 1), periodEndDate);
        }
        public void TestCalculateNextPeriodEndDateFrom_4WeekPeriod()
        {
            var period = new WeeklyRentalPeriod(4) { PeriodStartDate = new DateTime(2009, 11, 30) };

            DateTime periodEndDate = period.CalculateNextPeriodEndDateFrom(new DateTime(2009, 12, 1));

            Assert.AreEqual(new DateTime(2009, 12, 28), periodEndDate);
        }