Пример #1
0
        public void SetEnv(TestEnv env)
        {
            switch (env)
            {
            case TestEnv.Local:
                _clientId      = "";
                _serverAddress = "";
                break;

            case TestEnv.Dev:
                _clientId      = "";
                _serverAddress = "";
                break;

            case TestEnv.Test:
                _clientId      = "";
                _serverAddress = "";
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            var session = _sessionService.ApiSessionGetByClientPost(new ClientSessionGetByClientRequest(_clientId)).Sessions.FirstOrDefault();

            _token = session.SessionToken;
        }