public void Search_gets_a_correct_imdb_id() { var results = new FilmLookupService(new MockHttpService(FullMyApiFilmsResponse)).Search("Italian Job").Results; var ids = results.Select(r => r.ImdbId).ToList(); CollectionAssert.Contains(ids, "tt0064505"); }
public void Search_sorts_results_by_score() { var results = new FilmLookupService(new MockHttpService(MatrixResultsWithSpoofResponse)).Search("The Matrix 1999").Results; var ids = results.Select(r => r.ImdbId).ToList(); Assert.AreEqual(ids.First(), "tt0133093"); Assert.AreEqual(ids.Last(), "tt0274085"); }