private async Task UpdateGameAndAddPlayer() { List <ActivePlayer> players = new List <ActivePlayer>(); CatanGame catanGame = new CatanGame { ActivePlayers = players, BanditsDistance = 7, BanditsStrength = 4 }; await _catanGameBusinessLogic.UpdateGame(catanGame); UserProfile playerProfile = await _catanPlayerBusinessLogic.GetUser(PlayerEmail1, Password); UserProfile playerProfile2 = new UserProfile { Email = PlayerEmail2, FirstName = "Some", LastName = "Some", Name = "someSomeone2", Password = Password }; await _catanPlayerBusinessLogic.UpdatePlayer(playerProfile2); await _catanGameBusinessLogic.AddPlayerToGame(catanGame, playerProfile2.Email); await _catanGameBusinessLogic.AddPlayerToGame(catanGame, playerProfile.Email); }
public async Task UpdateUser([FromBody] UserProfile user) { _logger?.LogDebug($"UpdatePlayer for user: {user.Id}"); await _catanUserBusinessLogic.UpdatePlayer(user); }