Esempio n. 1
0
        public void TestFirstHourFlatFeeTrip()
        {
            var rating = new Rating();

            Assert.AreEqual(3m, rating.CalculateTotalCosts(TimeSpan.FromMinutes(45d)));
        }
Esempio n. 2
0
        public void TestLongTrip()
        {
            var rating = new Rating();

            Assert.AreEqual(13m, rating.CalculateTotalCosts(TimeSpan.FromMinutes(130d)));
        }
Esempio n. 3
0
        public void TestFreeShortTrip()
        {
            var rating = new Rating();

            Assert.AreEqual(0m, rating.CalculateTotalCosts(TimeSpan.FromMinutes(10d)));
        }