public async System.Threading.Tasks.Task TestMatchDetailAsync() { MatchesRepository rep = new MatchesRepository(); var match = await rep.GetMatch(1, false); var events = match.Events.ToList(); Assert.IsTrue(match.Id == 1); }
public static async Task <MatchDetail> GetMatchDetailAsync(int id) { return(await repo.GetMatch(id, false)); }