常用方法
常用方法
常用方法
常用方法
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); }