public void GetByID(string id) { var playerFound = playerService.GetPlayer(PubgPlatform.Steam, id, Credentials.PubgToken); Id = playerFound.Id; Name = playerFound.Name; GetMatches(playerFound); GetPlayerStats(); }
public void Can_Get_Player() { var playerService = new PubgPlayerService(Storage.ApiKey); var playerId = Storage.GetMatch(PubgRegion.PCEurope).Rosters.SelectMany(r => r.Participants).Select(p => p.Stats.PlayerId).FirstOrDefault(); var player = playerService.GetPlayer(PubgRegion.PCEurope, playerId); player.Id.Should().NotBeNull(); player.MatchIds.Should().NotBeNullOrEmpty(); player.Name.Should().NotBeNullOrWhiteSpace(); }