APITester.Program.TestGetStoreIDsAndGetStationIDs C# (CSharp) Метод

TestGetStoreIDsAndGetStationIDs() статический приватный Метод

static private TestGetStoreIDsAndGetStationIDs ( ) : void
Результат void
        static void TestGetStoreIDsAndGetStationIDs()
        {
            try
            {
                CompanyInformationAPI api = new CompanyInformationAPI();
                List<String> StoreIDs = api.GetStoreIDs();
                List<String> StationIDs;
                foreach (String StoreID in StoreIDs)
                {
                    StationIDs = api.GetStationIDs(StoreID);
                    Console.WriteLine("Store {0} has the following Stations:", StoreID);
                    foreach (String StationID in StationIDs)
                    {
                        Console.WriteLine("  {0}", StationID);
                    }
                    Console.WriteLine("");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
            finally
            {
                Console.WriteLine("PRESS ENTER TO CONTINUE...");
                Console.ReadLine();
            }
        }