示例#1
0
        public void InsertVehicleToGarage(Vehicle i_Vehicle, OwnerInfo i_Owner)
        {
            if (IsVehicleExist(i_Vehicle.LicenseNumber))
            {
                ChangeVehicleStatus(i_Vehicle.LicenseNumber, eVehicleStatuses.InFix);
            }
            else
            {
                GarageEntity newGarageEntity = new GarageEntity(i_Owner, i_Vehicle);

                m_GarageVehicles.Add(i_Vehicle.LicenseNumber, newGarageEntity);
            }
        }
示例#2
0
 public GarageEntity(OwnerInfo i_VehicleOwnerInfo, Vehicle i_Vehicle)
 {
     m_OwnerContactInfo = i_VehicleOwnerInfo;
     m_VehicleEntity    = i_Vehicle;
     m_VehicleStatus    = eVehicleStatuses.InFix;
 }