public TestActorRef <TActor> Create <TActor>(IWaiter childWaiter, TestKitBase testKit, Props props, int expectedChildrenCount, IActorRef supervisor) where TActor : ActorBase
        {
            childWaiter.Start(testKit, expectedChildrenCount);
            TestActorRef <TActor> sut = supervisor != null
                ? testKit.ActorOfAsTestActorRef <TActor>(props, supervisor)
                : testKit.ActorOfAsTestActorRef <TActor>(props);

            childWaiter.Wait();
            return(sut);
        }
            public void AddConstainer()
            {
                var index = Containers.Count;
                var node  = _testKit.ActorOfAsTestActorRef(
                    () => new TableContainer(_name, _nullDiscovery, typeof(CommonActorFactory <BlackHoleActor>), null, null),
                    _name + "Container" + Containers.Count);

                node.Tell(new ClusterActorDiscoveryMessage.ActorUp(Table, _name));
                Containers.Add(node);

                Table.Tell(new ClusterActorDiscoveryMessage.ActorUp(node, _name));
            }
 public ITestProbeParentActor Create(
     ITestProbeCreator testProbeCreator,
     IWaiter exceptionWaiter,
     TestKitBase testKit,
     Func <Exception, Directive> decider,
     IReadOnlyDictionary <Type, Func <object, object> > handlers) =>
 testKit
 .ActorOfAsTestActorRef <TestProbeParentActor>(
     Props.Create(() => new TestProbeParentActor(
                      testProbeCreator,
                      exceptionWaiter,
                      testKit,
                      decider,
                      handlers)))
 .UnderlyingActor;
            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();
                }
            }