Esempio n. 1
0
        public void CalculateCharge_PartialChargePeriod_EqualsThreeFullDays()
        {
            var visit = new LongVisit(
                new DateTime(2017, 9, 7, 7, 50, 0),
                new DateTime(2017, 9, 9, 5, 20, 0));

            Assert.AreEqual(visit.CalculateCharge(), 22.50);
        }
Esempio n. 2
0
        public void CalculateCharge_OneAndAHalfDays_TwoDayDuration()
        {
            var visit = new LongVisit(
                new DateTime(2021, 3, 14, 0, 0, 0),
                new DateTime(2021, 3, 15, 12, 0, 0));

            Assert.AreEqual(visit.CalculateCharge(), 15.00);
        }