Beispiel #1
0
        public VehicleTicket AddNewVehicle(string i_LicenseNumber, VehiclesEnums.eVehicleType i_VehicleType)
        {
            Vehicle       vehicle          = m_Factory.CreateNewVehicleOfType(i_VehicleType, i_LicenseNumber);
            VehicleTicket newVehicleTicket = new VehicleTicket(vehicle);

            m_Vehicles.Add(vehicle.GetLicenseNumber(), newVehicleTicket);

            return(newVehicleTicket);
        }