Esempio n. 1
0
        public void SetUp()
        {
            _connectionManagerService = new ConnectionManagerService();
            var connection = GetTestConnection();

            _connectionManagerService.AddConnection(connection.userId, connection.connectionId);
        }
Esempio n. 2
0
        public void AddConnection_Valid_Void()
        {
            var newConnection = GetNewTestConnection();

            //Act
            _connectionManagerService.AddConnection(newConnection.userId, newConnection.connectionId);

            //Assert
            Assert.IsTrue(_connectionManagerService.OnlineUsers.Contains(newConnection.userId));
        }