public void SearchSiteTest() { var target = new TheMovieDb(); var query = new Query { Results = new BindingList<QueryResult>(), Title = "Transformers", Year = "2007" }; const int ThreadID = 0; var actual = target.SearchSite(query, ThreadID, string.Empty); Assert.IsTrue(actual); }
/// <summary> /// Do a quick lookup on TmDB /// </summary> /// <param name="query">The query.</param> /// <returns> /// The quick search tmdb. /// </returns> public static bool QuickSearchTmdb(Query query) { if (query == null) { query = new Query(); } var tmdb = new TheMovieDb(); tmdb.SearchSite(query, 0, "Tmdb"); return query.Results.Count > 0; }