public void PastRacesAndPlayers() { PastRace pastRace = _client.PastRaces.GetAsync("239545").ConfigureAwait(false).GetAwaiter().GetResult(); Assert.AreEqual(pastRace.Results.Count, 2); Player tPlayer = _client.Players.GetAsync(pastRace.Results[0].PlayerName).ConfigureAwait(false).GetAwaiter().GetResult(); Assert.IsNotNull(tPlayer); Assert.AreEqual(tPlayer.Name, pastRace.Results[0].PlayerName); }
public void PastRacesAndPlayers() { PastRace pastRace = _client.PastRaces.Get("239545"); Assert.AreEqual(pastRace.Results.Count, 2); Player tPlayer = _client.Players.Get(pastRace.Results[0].PlayerName); Assert.IsNotNull(tPlayer); Assert.AreEqual(tPlayer.Name, pastRace.Results[0].PlayerName); }