Пример #1
0
        public SseClientTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);

            Configuration.Define();
            _context = new MockRequestResponseContext(new MockResponseSenderChannel());
            _client  = new SseClient(_context);
        }
Пример #2
0
        public SseFeedTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);

            _world = World.StartWithDefaults("test-feed");
            Configuration.Define();
            _context = new MockRequestResponseContext(new MockResponseSenderChannel());
            _client  = new SseClient(_context);
        }
Пример #3
0
 public SseSubscriberTest()
 {
     Configuration.Define();
     _context = new MockRequestResponseContext(new MockResponseSenderChannel());
     _client  = new SseClient(_context);
 }