예제 #1
0
        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);
        }
예제 #2
0
 public void TestCreateConnectionWithCustomQueryStringSucceeds(string queryString)
 {
     var message    = new OpenConnectionMessage(Guid.NewGuid().ToString("N"), new Claim[0], null, queryString);
     var connection = _clientConnectionManager.CreateConnection(message, null);
 }