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(); } }
static void TestDBInfo() { try { string DBName = ""; string InstanceName = ""; CompanyInformationAPI api = new CompanyInformationAPI(); api.GetDBInfo(ref DBName,ref InstanceName); Console.WriteLine("Database name:{0}", DBName); Console.WriteLine("Instance name:{0}", InstanceName); } catch (Exception ex) { Console.WriteLine(ex); } finally { Console.WriteLine("PRESS ENTER TO CONTINUE..."); Console.ReadLine(); } }