Пример #1
0
        public async Task Login()
        {
            await _chatHub.LoginAsAuthenticated(new ChatUser("peter#123", "[123]", new ProfilePicture()));

            var usersOfRoom = _connectionMapping.GetUsersOfRoom("W3C Lounge");

            Assert.AreEqual(1, usersOfRoom.Count);
            Assert.AreEqual("peter", usersOfRoom[0].Name);
            Assert.AreEqual("peter#123", usersOfRoom[0].BattleTag);
        }