Beispiel #1
0
        public FirehoseApiTest()
        {
            var sessionManagerMock = new Mock <IAuthTokens>();

            sessionManagerMock.Setup(obj => obj.SessionToken).Returns("sessionToken");
            sessionManagerMock.Setup(obj => obj.KeyManagerToken).Returns("keyManagerToken");
            _apiExecutorMock = new Mock <IApiExecutor>();
            _firehoseApi     = new FirehoseApi(sessionManagerMock.Object, "", new HttpClient(), _apiExecutorMock.Object);
        }
Beispiel #2
0
        public FirehoseApiTest()
        {
            var sessionManagerMock = new Mock <IAuthTokens>();

            sessionManagerMock.Setup(obj => obj.SessionToken).Returns("sessionToken");
            sessionManagerMock.Setup(obj => obj.KeyManagerToken).Returns("keyManagerToken");
            _configuration   = new Configuration();
            _apiExecutorMock = new Mock <IApiExecutor>();
            _firehoseApi     = new FirehoseApi(sessionManagerMock.Object, _configuration, _apiExecutorMock.Object);
        }