Akka.Interfaced.SlimSocket.ChannelTest.GatewayStop_AllChannelClosed_ThenStop C# (CSharp) Method

GatewayStop_AllChannelClosed_ThenStop() private method

private GatewayStop_AllChannelClosed_ThenStop ( ChannelType type, int clientCount ) : System.Threading.Tasks.Task
type ChannelType
clientCount int
return System.Threading.Tasks.Task
        public async Task GatewayStop_AllChannelClosed_ThenStop(ChannelType type, int clientCount)
        {
            // Arrange
            var gateway = CreatePrimaryGateway(type);
            for (int i = 0; i < clientCount; i++)
            {
                var clientChannel = await CreatePrimaryClientChannelAsync(type);
                var entry = clientChannel.CreateRef<EntryRef>();
                Assert.Equal("Test:" + i, await entry.Echo("Test:" + i));
            }

            // Act
            await gateway.Stop();

            // Assert
            Watch(gateway.CastToIActorRef());
            ExpectTerminated(gateway.CastToIActorRef());
        }