public void TestCalculateParkingTimeWith15DaysAnd2Hours()
        {
            //Arrange
            dateDataBuilder.WithDays(15);
            dateDataBuilder.WithHours(1);
            dateDataBuilder.WithMinutes(30);
            vehicleDataBuilder.WithDate(dateDataBuilder.Build());
            Vehicle vehicle = vehicleDataBuilder.Build();
            //Act
            var daysHoursTuple = CalculateParkingTime.GetParkingTime(vehicle.date);
            int days           = daysHoursTuple.Item1;
            int hours          = daysHoursTuple.Item2;

            //Assert
            Assert.Equal(15, days);
            Assert.Equal(2, hours);
        }
        public void TestCalculatePaymentMotorbikeWith3daysAnd2Hours()
        {
            //Arrange
            dateDataBuilder.WithDays(3);
            dateDataBuilder.WithHours(1);
            dateDataBuilder.WithMinutes(15);
            vehicleDataBuilder.WithDate(dateDataBuilder.Build());
            vehicleDataBuilder.WithType(InfoConstants.motorbike);
            Vehicle vehicle = vehicleDataBuilder.Build();
            //Act
            var daysHoursTuple = CalculateParkingTime.GetParkingTime(vehicle.date);
            int days           = daysHoursTuple.Item1;
            int hours          = daysHoursTuple.Item2;
            var totalCharge    = CalculatePayment.GetPaymentValue(days, hours, vehicle);

            //Assert
            Assert.Equal(13000, totalCharge);
        }
        public void TestCalculatePaymentCarWithMoreThan9HoursAndLessThan24Hours()
        {
            //Arrange
            dateDataBuilder.WithDays(0);
            dateDataBuilder.WithHours(13);
            dateDataBuilder.WithMinutes(25);
            vehicleDataBuilder.WithDate(dateDataBuilder.Build());
            vehicleDataBuilder.WithType(InfoConstants.car);
            Vehicle vehicle = vehicleDataBuilder.Build();
            //Act
            var daysHoursTuple = CalculateParkingTime.GetParkingTime(vehicle.date);
            int days           = daysHoursTuple.Item1;
            int hours          = daysHoursTuple.Item2;
            var totalCharge    = CalculatePayment.GetPaymentValue(days, hours, vehicle);

            //Assert
            Assert.Equal(8000, totalCharge);
        }
        public void TestCalculateParkingTimeWithLessThan9Hours()
        {
            //Arrange
            dateDataBuilder.WithDays(0);
            dateDataBuilder.WithHours(4);
            dateDataBuilder.WithMinutes(30);
            dateDataBuilder.WithSeconds(0);
            vehicleDataBuilder.WithDate(dateDataBuilder.Build());
            Vehicle vehicle = vehicleDataBuilder.Build();
            //Act
            var daysHoursTuple = CalculateParkingTime.GetParkingTime(vehicle.date);
            int days           = daysHoursTuple.Item1;
            int hours          = daysHoursTuple.Item2;

            //Assert
            Assert.Equal(0, days);
            Assert.Equal(5, hours);
        }