Akka.Interfaced.SlimServer.ActorBoundChannelTest.CloseChannel_WithChildren_WaitsForAllChildrenStop C# (CSharp) Method

CloseChannel_WithChildren_WaitsForAllChildrenStop() private method

private CloseChannel_WithChildren_WaitsForAllChildrenStop ( ) : void
return void
        private void CloseChannel_WithChildren_WaitsForAllChildrenStop()
        {
            // Arrange
            var channel = Sys.InterfacedActorOf(() => new TestActorBoundChannel(context =>
                new[] { Tuple.Create(context.ActorOf<DummyEventActor>(null), new TaggedType[] { typeof(IDummy) }, ActorBindingFlags.CloseThenNotification) })).Cast<ActorBoundChannelRef>();

            // Act
            channel.WithNoReply().Close();
            Watch(channel.CastToIActorRef());
            ExpectTerminated(channel.CastToIActorRef());
        }