Esempio n. 1
0
        public InboundStreamTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);

            _world = TestWorld.Start("test-inbound-stream");

            _interest = new MockInboundStreamInterest(output);

            _reader = new MockChannelReader();

            _inboundStream = _world.ActorFor <IInboundStream>(
                () => new InboundStreamActor(_interest, AddressType.Op, _reader, 10), "test-inbound");
        }
Esempio n. 2
0
        public InboundStreamTest(ITestOutputHelper output)
        {
            var converter = new Converter(output);

            Console.SetOut(converter);

            _world = TestWorld.Start("test-inbound-stream");

            _interest = new MockInboundStreamInterest();

            _reader = new MockChannelReader();

            var definition = Definition.Has <InboundStreamActor>(Definition.Parameters(_interest, AddressType.Op, _reader, 10), "test-inbound");

            _inboundStream = _world.ActorFor <IInboundStream>(definition);
        }