Exemplo n.º 1
0
        public void PriceTruck()
        {
            Tull tull = new Tull(new Vehicle(Vehicle.VehicleType.Truck, 1500), new DateTime(2018, 05, 11, 15, 00, 00));

            Assert.AreEqual(2000, tull.TotalPriceCalculator());
        }
Exemplo n.º 2
0
        public void EveningPriceMC()
        {
            Tull tull = new Tull(new Vehicle(Vehicle.VehicleType.MC, 1500), new DateTime(2018, 05, 11, 19, 00, 00));

            Assert.AreEqual(350, tull.TotalPriceCalculator());
        }
Exemplo n.º 3
0
        public void PriceLightWeightCarWeekday()
        {
            Tull tull = new Tull(new Vehicle(Vehicle.VehicleType.Car, 1000), new DateTime(2018, 05, 11, 17, 00, 00));

            Assert.AreEqual(500, tull.TotalPriceCalculator());
        }
Exemplo n.º 4
0
        public void EveningAndWeekendHeavyCar()
        {
            Tull tull = new Tull(new Vehicle(Vehicle.VehicleType.Car, 1500), new DateTime(2018, 05, 12, 19, 00, 00));

            Assert.AreEqual(2000, tull.TotalPriceCalculator());
        }
Exemplo n.º 5
0
        public void EcoCarPriceTest()
        {
            Tull tull = new Tull(new Vehicle(Vehicle.VehicleType.EcoCar, 1500), new DateTime(2018, 05, 11, 17, 00, 00));

            Assert.AreEqual(0, tull.TotalPriceCalculator());
        }