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