static void initializBuss(int numOfBuss = 20) { BussList = new List <DO.Bus>(); for (int i = 0; i < numOfBuss; i++) { var dateFrom = RandomValues.randomDate(); BussList.Add(new DO.Bus() { FromDate = dateFrom, LicenseNum = RandomValues.randomLicenseNumber(dateFrom), Status = DO.BusStatus.READY, TotalTrip = RandomValues.getKilometers(), LastTreatment = RandomValues.randomDate(2018), KilometersAfterFueling = RandomValues.getKilometers(0, DO.Bus.MAX_KILOMETER_AFTER_REFUELING), KilometersAfterTreatment = RandomValues.getKilometers(0, DO.Bus.KILOMETER_BEFORE_TREATMENT), FuelRemain = RandomValues.getFuelLiters(), IsDeleted = false }); } }