public static void PlatformClientInitialize(TestContext testContext)
 {
     clientStabA = new PlatformClientStub(new System.Net.CookieContainer());
     clientStabA.AtValue = "initDt_AtValue";
     clientStabA.EjxValue = "initDt_EjxValue";
     clientStabA.PvtValue = "initDt_PvtValue";
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var clientStabA = new PlatformClientStub(new System.Net.CookieContainer());
            clientStabA.AtValue = "initDt_AtValue";
            clientStabA.EjxValue = "initDt_EjxValue";
            clientStabA.PvtValue = "initDt_PvtValue";
            var apiWrapper = new ApiWrapperWithLogger();
            var api = new DefaultAccessor(apiWrapper);

            var hmInit = api.GetInitDataAsync(clientStabA).Result;
        }
 public static void PlatformClientInitialize(TestContext testContext)
 {
     var cookies = PlatformClientFactoryEx.ImportCookiesFromIE();
     clientStabA = new PlatformClientStub(cookies);
     var initDt = target.GetInitDataAsync(clientStabA).Result;
     clientStabA.Afsid = initDt.Afsid;
     clientStabA.AtValue = initDt.AtValue;
     clientStabA.BuildLevel = initDt.BuildLevel;
     clientStabA.EjxValue = initDt.EjxValue;
     clientStabA.Lang = initDt.Lang;
     clientStabA.PvtValue = initDt.PvtValue;
 }