Exemplo n.º 1
0
        public PropertiesTests()
        {
            Properties prop = new Properties("connection.properties");
            String fetchStr = prop.get("fetchProperties");

            fetchProperties = !fetchStr.Equals("All")?Int32.Parse(fetchStr):-1;
        }
Exemplo n.º 2
0
        public BaseTest()
        {
            Properties prop = new Properties("connection.properties");

            int max = 11;
            int count = 1;
            String connStr;
            while (count < max)
            {
                String key = "connStr" + count++;
                connStr = prop.get(key);
                if (!String.IsNullOrEmpty(connStr))
                    connectionsStr.Add(key, connStr);
            }
        }
Exemplo n.º 3
0
        public QueryTest()
        {
            Properties prop = new Properties("connection.properties");

            foreach(DictionaryEntry entry in connectionsStr)
            {
                List<String> queriesList = new List<string>();
                bool exit = false;
                int count = 1;
                String query;

                while (!exit)
                {
                    query = prop.get((String)(entry.Key) + ".queryString" + count);
                    if (!String.IsNullOrEmpty(query))

                        queriesList.Add(query);
                    else exit = true;
                    count++;
                }
                queries.Add((String)(entry.Key), queriesList);
            }
        }