public static void RefuelVehicle(Garage i_Garage) { Console.WriteLine(Messages.sr_EnterLicenseNumber); string licenseNumber = Utils.GetValidStringFromUser(); List <string> fuelTypes = Garage.GetFuelTypes(); Console.WriteLine(Messages.ChooseVehicleStatus(fuelTypes)); string fuelType = fuelTypes[Utils.GetValidInRangeFromUser(1, fuelTypes.Count) - 1]; Console.WriteLine(Messages.sr_TypeAmoutOfFuel); float fuelAmount = Utils.GetValidFloatFromUser(); try { i_Garage.Refuel(licenseNumber, fuelType, fuelAmount); } catch (Exception e) { Console.WriteLine(e.Message); } }