Exemple #1
0
        public AttributesAgentActorTest(ITestOutputHelper output) : base(output)
        {
            _localNodeId = Id.Of(1);

            _localNode = Config.NodeMatching(_localNodeId);

            _set = AttributeSet.Named("test-set");

            _tracked = _set.AddIfAbsent(Attribute <string> .From("test-attr", "test-value"));

            _channelProvider = new MockManagedOutboundChannelProvider(_localNodeId, Config);

            var pool = new ConsumerByteBufferPool(ElasticResourcePool <IConsumerByteBuffer, string> .Config.Of(10), Properties.OperationalBufferSize());

            _interest = new MockConfirmationInterest();

            _outboundStream =
                TestWorld.ActorFor <IOperationalOutboundStream>(
                    () => new OperationalOutboundStreamActor(_localNode, _channelProvider, pool));
        }
Exemple #2
0
        public AttributesAgentActorTest(ITestOutputHelper output) : base(output)
        {
            _localNodeId = Id.Of(1);

            _localNode = Config.NodeMatching(_localNodeId);

            _set = AttributeSet.Named("test-set");

            _tracked = _set.AddIfAbsent(Attribute <string> .From("test-attr", "test-value"));

            _channelProvider = new MockManagedOutboundChannelProvider(_localNodeId, Config);

            _pool = new ByteBufferPool(10, Properties.OperationalBufferSize());

            _interest = new MockConfirmationInterest();

            _outboundStream =
                TestWorld.ActorFor <IOperationalOutboundStream>(
                    Definition.Has <OperationalOutboundStreamActor>(
                        Definition.Parameters(_localNode, _channelProvider, _pool)));
        }