public async Task TestCreateConnectionAlwaysUsesConnectionIdInOpenConnectionMessage(string queryString, string expectedConnectionId) { var message = new OpenConnectionMessage(expectedConnectionId, new Claim[0], null, queryString); var connection = await _clientConnectionManager.CreateConnection(message); Assert.Equal(expectedConnectionId, connection.ConnectionId); }
public void TestCreateConnectionWithCustomQueryStringSucceeds(string queryString) { var message = new OpenConnectionMessage(Guid.NewGuid().ToString("N"), new Claim[0], null, queryString); var connection = _clientConnectionManager.CreateConnection(message, null); }