public async void ConnectionSubscriptionRemovedOnNormalDisconnect() { RedisBackplane backplane = null; using (var server = new SimpleMorseLServer <TestHub>((collection, builder) => { collection.AddSingleton <IBackplane, RedisBackplane>(); collection.Configure <ConfigurationOptions>(options => { options.EndPoints.Add(REDIS_URI); }); }, (builder, provider) => { backplane = (RedisBackplane)provider.GetRequiredService <IBackplane>(); }, logger: _logger)) { await server.Start(_context.PortPool); var client = new Client.Connection(server.Uri, logger: _logger); await client.StartAsync(); await client.DisposeAsync(); Assert.DoesNotContain(client.ConnectionId, backplane.Connections.Keys); } }