public async Task GetKnownGames(string nameFilter) { var knownGames = await sut.GetKnownGames(new KnownGamesPagedQuery() { GameName = nameFilter }); Assert.NotEmpty(knownGames); Assert.NotNull(knownGames[0].name); }
public async Task <List <KnownGame> > GetKnownGameNames(string filterGameName) { var games = await beamProClient.GetKnownGames(new KnownGamesPagedQuery() { GameName = filterGameName }); return(games.ConvertAll(input => new KnownGame() { GameName = input.name, TotalViewers = input.viewersCurrent, ThumbnailUrls = new ThumbnailUrls() { Large = input.coverUrl, Medium = input.coverUrl, Small = input.coverUrl } })); }