public JsonResult SortBetweenDaysAndHours(string startHour, string endHour, string startDate, string endDate, string vehicleType)
        {
            List <Vehicle>       vehicles       = dbVehicles.getSortedVehiclesDayAndHours(startHour, endHour, startDate, endDate, vehicleType);
            IEnumerable <int>    selectAmount   = SelectVehicleAmount(vehicles);
            IEnumerable <string> selectHour     = SelectHourStampStrings(vehicles, "Dato", true);
            IEnumerable <string> selectDay      = SelectCurrentDays(vehicles);
            IEnumerable <string> selectVehiType = SelectVehicleType(vehicles);

            return(Json(new { countSelect = selectAmount, hourSelect = selectHour, daySelect = selectDay, vehicleSelect = selectVehiType }, JsonRequestBehavior.AllowGet));
        }
        public void getSortedVehiclesDayAndHoursTest()
        {
            //Arrange Vehicles
            vehiclesToFind.VehicleId     = 6;
            vehiclesToFind.DateTimeStamp = "10 Dec 2020";
            vehiclesToFind.HourStamp     = "09";
            vehiclesToFind.VehicleAmount = 15;

            //Act
            IEnumerable <Vehicle> foundTestVehicles = findVehicles.getSortedVehiclesDayAndHours("09", "09", "10 Dec 2020", "10 Dec 2020");

            //Assert
            Assert.IsNotNull(foundTestVehicles);
        }