Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private void showDetailsByLicenceNumber()
        {
            string licenseNumber = getLicenceNumberFromUser();

            Vehicle vehicle = m_Garage.GetVehicle(licenseNumber);

            if (vehicle != null)
            {
                write(vehicle.Print());
            }
            else
            {
                write("No such vehicle");
            }
        }