Пример #1
0
        public static void ListVehicles(Garage i_Garage)
        {
            List <string> vehicleStatuses = Garage.GetVehicleStatuses();

            Console.WriteLine(Messages.ChooseVehicleStatus(vehicleStatuses));
            string vehicleStatus          = vehicleStatuses[Utils.GetValidInRangeFromUser(1, vehicleStatuses.Count) - 1];
            IEnumerable <string> vehicles = i_Garage.GetLicensesByStatus(vehicleStatus);

            foreach (string str in vehicles)
            {
                Console.WriteLine(str + Environment.NewLine);
            }
        }