public TestSystem(TestKitBase testKit, string name, int containerCount)
            {
                _testKit = testKit;
                _name = name;
                _nullDiscovery = _testKit.ActorOf(BlackHoleActor.Props);

                Table = _testKit.ActorOfAsTestActorRef(
                    () => new Table("TEST", _name, _nullDiscovery, typeof(IncrementalIntegerIdGenerator), null),
                    _name);
                Containers = new List<TestActorRef<DistributedActorTableContainer<long>>>();
                for (int i = 0; i < containerCount; i++)
                    AddConstainer();
            }
Beispiel #2
0
            public Server(TestKitBase testkit, EndPoint address = null)
            {
                _testkit = testkit;
                Address = address ?? TestUtils.TemporaryServerAddress();

                ServerProbe = testkit.CreateTestProbe();
                ServerRef = testkit.ActorOf(TestServerProps(Address, ServerProbe.Ref));
                ServerProbe.ExpectMsg<Tcp.Bound>();
            }