public ActionResult BuscarJogoIgdbJquery(string search) { IgdbService igdb = new IgdbService(); GameResultView view = new GameResultView(); view.ListaJogos = igdb.BuscarJogo(search); return(PartialView("GameResultView", view)); }
public void TesteBuscarJogo() { IgdbService igdb = new IgdbService(); List <BuscaGameResponse> response = igdb.BuscarJogo("infamous"); Assert.IsNotNull(response[0].Id); Assert.IsNotNull(response[0].Cover.CloudinaryId); Assert.IsNotNull(response[0].Name); Assert.IsNotNull(response[0].ReleaseDates[0].Platform); }