public async Task InvokeGroupAsync_WritesTo_AllConnections_InGroups_Output() { using (var client1 = new TestClient()) using (var client2 = new TestClient()) { var manager = new OrleansHubLifetimeManager <MyHub>(new LoggerFactory().CreateLogger <OrleansHubLifetimeManager <MyHub> >(), this._fixture.ClientProvider); var connection1 = HubConnectionContextUtils.Create(client1.Connection); var connection2 = HubConnectionContextUtils.Create(client2.Connection); await manager.OnConnectedAsync(connection1); await manager.OnConnectedAsync(connection2); await manager.AddToGroupAsync(connection1.ConnectionId, "gunit"); await manager.AddToGroupAsync(connection2.ConnectionId, "tupac"); await manager.SendGroupsAsync(new string[] { "gunit", "tupac" }, "Hello", new object[] { "World" }); await AssertMessageAsync(client1); await AssertMessageAsync(client2); } }