Exemple #1
0
        public AutoPlayer(string uri, string username, string password)
        {
            _playerInternalId = (s_counter++).ToString();
            _playerInternalId = _playerInternalId.PadLeft(5, '0');

            _username = username;
            _password = password;
            // TODO: those values should be injected via config, not hard coded
            _client = new NetherClient(uri, "resourceowner-test", "devsecret");
        }
Exemple #2
0
        public void Init()
        {
            if (UserName == null)
            {
                UserName = "******" + _random.Next(10000); // hard coded user names created for the load test in the memory store
                Password = "******";
            }
            var baseUrl = BaseUrl ?? "http://localhost:5000";

            _client = new NetherClient(baseUrl, ClientId, ClientSecret);
            if (LoggedIn)
            {
                // we've already logged in so set the access token
                _client.AccessToken = AccessToken;
            }
        }