Esempio n. 1
0
        public void Case6_MotorcycleHeavy_RegularFee()
        {
            // arrange
            var car = new Vehicle(1000, vehicleType.motorcycle, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0));
            // assert
            var expected = 700;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void Case7_Motorcycle_Weekend_DayTime()
        {
            // arrange
            var car = new Vehicle(1000, vehicleType.motorcycle, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 17, 15, 0, 0));
            // assert
            var expected = 1400;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void Case4_Truck_RegularFee()
        {
            // arrange
            var car = new Vehicle(5000, vehicleType.truck, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0));
            // assert
            var expected = 2000;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 4
0
        public void Case3_LightCar_EarlyMorningTime()
        {
            // arrange
            var car = new Vehicle(900, vehicleType.car, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 5, 59, 59));
            // assert
            var expected = 250;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 5
0
        public void Case2_5_RegularCar_Under1000kg()
        {
            // arrange
            var car = new Vehicle(999, vehicleType.car, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 12, 19, 15, 0, 0));
            // assert
            var expected = 500;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 6
0
        public void Case8_Motorcycle_Environmental()
        {
            // arrange
            var car = new Vehicle(1000, vehicleType.motorcycle, true);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2020, 4, 13, 19, 0, 0));
            // assert
            var expected = 0;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 7
0
        public void Case7_Motorcycle_MidsummerEvening_NightTime()
        {
            // arrange
            var car = new Vehicle(1000, vehicleType.motorcycle, false);
            //act
            var actual = CustomsGuard.GetFee(car, new DateTime(2016, 6, 24, 19, 0, 0));
            // assert
            var expected = 1400;

            Assert.AreEqual(expected, actual);
        }