public async Task RemoveGameLobby() { //Arrange string lobbyId = TestData.GameLobbies.FlorisLobby !.Code; //Act int rowsAffected = await _gameLobbyRepository.RemoveGameLobby(lobbyId); TestData.GameLobbies.FlorisLobby = null; //Assert Assert.AreEqual(rowsAffected, 3); }
public async Task <bool> RemoveGameLobby(string id) { var existingLobby = await GetGameLobbyById(id); if (existingLobby != null) { await _gameLobbyRepository.RemoveGameLobby(id); return(true); } else { return(false); } }