public static string ReadData(string section, string key)
        {
            env = new Read_ini();
            string envType = env.GetProperty("environment", "environmentType");

            if (envType.Equals("dev", StringComparison.OrdinalIgnoreCase))
            {
                IniParser.FileIniDataParser parser = new FileIniDataParser();
                read = parser.ReadFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), @"resources\Dev.ini"));
            }
            else if (envType.Equals("qa", StringComparison.OrdinalIgnoreCase))
            {
                IniParser.FileIniDataParser parser = new FileIniDataParser();
                read = parser.ReadFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), @"resources\Qa.ini"));
            }
            else if (envType.Equals("staging", StringComparison.OrdinalIgnoreCase))
            {
                IniParser.FileIniDataParser parser = new FileIniDataParser();
                read = parser.ReadFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), @"resources\Staging.ini"));
            }
            KeyDataCollection data = read[section];

            return(data[key]);
        }
 private SetUpClass()
 {
     read   = new Read_ini();
     home   = new HomePage();
     common = new CommonCode();
 }