Ejemplo n.º 1
0
        public List <string> GetAllVehicleDetails()
        {
            List <string> vehicleInGarageDetails = new List <string>();

            vehicleInGarageDetails.Add(string.Format("The owner of the vehicle: {0}", NameOfOwner));
            vehicleInGarageDetails.Add(string.Format("The status of the vehicle: {0}", VehicleStatus.ToString()));
            vehicleInGarageDetails = Vehicle.GetVehicleDetails(vehicleInGarageDetails);
            vehicleInGarageDetails = Vehicle.EngineOfVehicle.GetEngineDetails(vehicleInGarageDetails);

            return(vehicleInGarageDetails);
        }