Beispiel #1
0
        public async void TestPull()
        {
            var subscription = await SubscriberFacade.Subscribe(new SubscriptionRequest()
            {
                Id = "TestSubscription", AgetnId = "reddit_posts"
            }, null);

            var testStream = new TestStreamWriter();
            await SubscriberFacade.StreamingPull(new StreamingPullRequest()
            {
                Id = "TestSubscription"
            }, testStream, null);

            await Task.Delay(1000);

            foreach (var message in testStream.Messages)
            {
                _testOutputHelper.WriteLine(message.ToString());
            }
        }
Beispiel #2
0
 public SpyConsole(ITestOutputHelper log)
 {
     outWriter = new TestStreamWriter(log, "");
     errWriter = new TestStreamWriter(log, "");
 }