public async Task GetAllLobbies()
        {
            // Arrange
            // Seeding has 2 lobbies
            int expectedResult = 2;

            // Act
            var lobbies = await _gameLobbyRepository.GetAllGameLobbies();

            // Assert
            Assert.AreEqual(expectedResult, lobbies.Count());
        }
示例#2
0
 public async Task <IEnumerable <GameLobby> > GetAllGameLobbies()
 {
     return(await _gameLobbyRepository.GetAllGameLobbies());
 }