Beispiel #1
0
        public void CreateRentByHour()
        {
            double estimatedPrice     = 5;
            double estimatedRentPrice = 30;

            CreateRent(new DateTime(2017, 10, 01, 15, 22, 35), TypeRent.Hour);
            Assert.AreEqual(Convert.ToDouble(estimatedPrice), ((RentHour)instance).Price);
            Assert.AreEqual(Convert.ToDouble(estimatedRentPrice), instance.GetPrice());
        }