public void RemovingUserFromMultipleRooms()
        {
            CardGame        cardGame = new CardGame();
            Room            r1       = cardGame.CreatingRoom();
            Room            r2       = cardGame.CreatingRoom();
            ApplicationUser user     = cardGame.Connection("userId");

            cardGame.AddingPlayer(r1.RoomId, user.UserId);
            cardGame.AddingPublic(r2.RoomId, user.UserId);
            List <string> result = cardGame.RemovingUser(user.UserId);

            Assert.AreEqual(true, result.Contains(r1.RoomId) && result.Contains(r2.RoomId));
        }
Esempio n. 2
0
 public void AddingPublic(string roomId, string userId)
 {
     cardGame.AddingPublic(roomId, userId);
 }