Пример #1
0
        public static void Init()
        {
            Log.PrintTestFixtureSetup();
            if (string.Equals(PublicAPIConfig.PrivateAPIAutoAuthentication, "true", StringComparison.OrdinalIgnoreCase))
            {
                TestBase.PrivateAuthentication.CreatePrivateClient(PublicAPIConfig.PrivateServer);
            }

            if (string.Equals(PublicAPIConfig.AutoAuthentication, "true", StringComparison.OrdinalIgnoreCase))
            {
                PublicAPIAuthentication authentication = TestBase.PublicAuthentication;
                authentication.Authenticate();
            }
        }
Пример #2
0
        public static void Init()
        {
            Log.PrintTestInit();
            if (!string.IsNullOrEmpty(PublicAPIConfig.PrivateAPIAutoAuthentication) &&
                PublicAPIConfig.PrivateAPIAutoAuthentication.ToLower() == "true")
            {
                TestBase.PrivateAuthentication.CreatePrivateClient(PublicAPIConfig.PrivateServer);
            }

            if (!string.IsNullOrEmpty(PublicAPIConfig.AutoAuthentication) &&
                PublicAPIConfig.AutoAuthentication.ToLower() == "true")
            {
                PublicAPIAuthentication authentication = TestBase.PublicAuthentication;
                authentication.Authenticate(AuthenticationInfoProvider.Current.DefaultAppKey, AuthenticationInfoProvider.Current.DefaultAppSecret);
            }
        }