public void TestBandsQuery() { var reqParams = new TasteKidRequestParams(); reqParams.AddBandQuery("the beatles"); var resp = TasteKidRequest.Search(reqParams); Assert.IsNotNull(resp); Assert.IsNotNull(resp.Similar.Info.FirstOrDefault(ii => ii.Name == "The Beatles" && ii.Type == "music")); Assert.IsNotNull(resp.Similar.Results.FirstOrDefault(rr => rr.Name == "The Rolling Stones" && rr.Type == "music")); Assert.IsNotNull(resp.Similar.Results.FirstOrDefault(rr => rr.Name == "A Hard Day's Night" && rr.Type == "movie")); }
public void TestQueryWithAppIdentification() { var reqParams = new TasteKidRequestParams(); reqParams.AddBandQuery("the beatles"); /// put here your app ID data here, don't wont to share mine with the world :) reqParams.K_Param = ""; reqParams.F_Param = ""; var resp = TasteKidRequest.Search(reqParams); Assert.IsNotNull(resp); Assert.IsNotNull(resp.Similar.Info.FirstOrDefault(ii => ii.Name == "The Beatles" && ii.Type == "music")); Assert.IsNotNull(resp.Similar.Results.FirstOrDefault(rr => rr.Name == "The Rolling Stones" && rr.Type == "music")); Assert.IsNotNull(resp.Similar.Results.FirstOrDefault(rr => rr.Name == "A Hard Day's Night" && rr.Type == "movie")); }