private async Task GetParkingLots() { WriteLine($"Testing GET '{_route}/{ParkingLotApi.Path}'."); ICollection <ParkingLot> parkingLots = await _parkingLotApi.Get <ParkingLot>(); WriteLine($"Got {parkingLots.Count} Parking Lots:"); foreach (ParkingLot parkingLot in parkingLots) { WriteLine(parkingLot.GetPrintString()); } WriteLine(); }
private async Task GetParkingLots() { WriteLine($"Testing GET \"{Route}{ParkingLots.Route}\""); ICollection <ParkingLot> parkingLots = await ParkingLots.Get <ParkingLot>(); WriteLine($"Got {parkingLots.Count} Parking Lots:"); foreach (ParkingLot parkingLot in parkingLots) { WriteLine(parkingLot.GetPrintString()); } WriteLine(); }