Exemple #1
0
        public static void AddNewGarageEntry(eVehicleType i_VehicleType, string i_ModelName, string i_LicenceNumber, string i_WheelManfucaturerName, string i_OwnerName, string i_OwnerPhoneNum, Dictionary <string, string> uniqueVehicleProperties)
        {
            Vehicle vehicleToAdd = VehicleFactory.CreateVehicle((int)i_VehicleType, i_ModelName, i_LicenceNumber);

            vehicleToAdd.SetVehicleWheels(i_WheelManfucaturerName);
            vehicleToAdd.InitUniqueVehicleProperties(uniqueVehicleProperties);

            CustomerData vehicleCustomerData = new CustomerData(i_OwnerName, i_OwnerPhoneNum);

            vehicleCustomerData.VehicleStatus = eVehicleStatus.InRepair;

            s_GarageEntries.Add(vehicleToAdd, vehicleCustomerData);
        }