Esempio n. 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);
        }
Esempio n. 2
0
        public string GetVehicleDescription(string i_LicenseId)
        {
            VehicleTicket vehiclesTicket     = m_Vehicles[i_LicenseId];
            string        vehicleDescription = CreateDescriptionOfVehicle(vehiclesTicket.Vehicle);
            string        ticketDescription  = string.Format(
                @"-Vehicle Description-
License Number: {0}
Status In Garage: {1}
Owner Name: {2}
Owner Phone Number: {3}
------------
{4}",
                i_LicenseId,
                vehiclesTicket.Status,
                vehiclesTicket.Owner,
                vehiclesTicket.Phone,
                vehicleDescription);

            return(ticketDescription);
        }
Esempio n. 3
0
 public static bool CheckIfLegalName(string i_Name)
 {
     return(VehicleTicket.CheckIfLegalName(i_Name));
 }
Esempio n. 4
0
 public static bool CheckIfLegalPhoneNumber(string i_PhoneNumberToCheck)
 {
     return(VehicleTicket.CheckIfLegalPhoneNumber(i_PhoneNumberToCheck));
 }