private async Task ParkingLotGetMethods(string id)
        {
            WriteLine($"Testing GET '{_route}/{ParkingLotApi.Path}/{id}/{SensorApi.Path}'.");

            ICollection <Sensor> sensors = await _parkingLotApi.GetSensors(id);

            WriteLine($"Got {sensors.Count} Sensors:");
            foreach (Sensor sensor in sensors)
            {
                WriteLine(sensor.GetPrintString());
            }
            WriteLine();

            WriteLine($"Testing GET '{_route}/{ParkingLotApi.Path}/{id}/{DrivewayApi.Path}'.");

            ICollection <Driveway> driveways = await _parkingLotApi.GetDriveways(id);

            WriteLine($"Got {driveways.Count} Driveways:");
            foreach (Driveway driveway in driveways)
            {
                WriteLine(driveway.GetPrintString());
            }
            WriteLine();
        }
示例#2
0
        private async Task ParkingLotGetMethods(string id)
        {
            WriteLine($"Testing GET \"{Route}{ParkingLots.Route}/{id}/sensors\"");

            ICollection <Sensor> sensors = await ParkingLots.GetSensors(id);

            WriteLine($"Got {sensors.Count} Sensors:");
            foreach (Sensor sensor in sensors)
            {
                WriteLine(sensor.GetPrintString());
            }
            WriteLine();

            WriteLine($"Testing GET \"{Route}{ParkingLots.Route}/{id}/driveways\"");

            ICollection <Driveway> driveways = await ParkingLots.GetDriveways(id);

            WriteLine($"Got {driveways.Count} Driveways:");
            foreach (Driveway driveway in driveways)
            {
                WriteLine(driveway.GetPrintString());
            }
            WriteLine();
        }