Пример #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 MockSseStreamResource(World world) : base(world)
 {
     _completes = world.CompletesFor(new BasicCompletes <string>(world.Stage.Scheduler));
     _requestResponseContext = new MockRequestResponseContext(new MockResponseSenderChannel());
 }
Пример #4
0
 public SseSubscriberTest()
 {
     Configuration.Define();
     _context = new MockRequestResponseContext(new MockResponseSenderChannel());
     _client  = new SseClient(_context);
 }