public void SearchForVehicles() { if (Company.NumberOfOwnedVehicles() > 0) { int minimumCapacity = InputVehicle.CatchVehicleCapacity(); int minimumVolume = InputVehicle.CatchVehicleVolume(); TryFindVehicles(Company.SearchForVehicles(minimumCapacity, minimumVolume)); } else { StandardMessage.NoVehiclesOwned(); } }
private void CatchVehicleData(Vehicle Vehicle) { Vehicle.Name = InputVehicle.CatchVehicleName(); Vehicle.Capacity = InputVehicle.CatchVehicleCapacity(); Vehicle.Volume = InputVehicle.CatchVehicleVolume(); }