Ejemplo n.º 1
0
        public static T ConsumeServiceUserByAction <T>(string action, string serialize, string service) where T : class
        {
            T      response = Activator.CreateInstance <T>();
            string result   = string.Empty;
            HttpWebRequestServiceSOAP HttpWebReq = HttpWebRequestServiceSOAP.GetInstance("text/xml;charset=\"utf-8\"", "text/xml", "POST", service);

            result   = HttpWebReq.ConsumeServiceUserByAction(action, serialize);
            response = SerializerXML.Deserialize <T>(result);

            return(response);
        }
Ejemplo n.º 2
0
        public static Settings GetFrameworkSettings()
        {
            var configFile = TestContext.Parameters["configFileName"];

            if (string.IsNullOrEmpty(configFile))
            {
                configFile = "ChromeConfig.xml";
            }
            string path = AppDomain.CurrentDomain.BaseDirectory + "\\..\\..\\" + $"\\Config\\{configFile}";

            string xmlInputData = File.ReadAllText(path);

            return(SerializerXML.Deserialize <Settings>(xmlInputData));
        }