public JsonResult SortBetweenDays(string startDate, string endDate, string VehicleType)
        {
            List <Vehicle>       vehicle      = dbVehicles.getSortedVehiclesDay(startDate, endDate, VehicleType);
            IEnumerable <int>    selectAmount = SelectVehicleAmount(vehicle);
            IEnumerable <string> selectHour   = SelectHourStampStrings(vehicle, "Dato", false);
            IEnumerable <string> selectDay    = SelectCurrentDays(vehicle);

            return(Json(new { countSelect = selectAmount, hourSelect = selectHour, daySelect = selectDay }, JsonRequestBehavior.AllowGet));
        }
        public void getSortedVehiclesDayTest()
        {
            //Arrange Vehicles
            vehiclesToFind.DateTimeStamp = "10 Dec 2020";
            vehiclesToFind.VehicleAmount = 50;

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

            //Assert
            Assert.IsNotNull(foundTestVehicles);
        }