public OpenMovieDatabaseClientIntegrationTest() { var handler = new HttpClientHandler { UseCookies = false, AllowAutoRedirect = true, ServerCertificateCustomValidationCallback = null }; var httpClient = new HttpClient(handler); //I'm using the same api key that http://www.omdbapi.com this could be stop working any moment _sut = new OpenMovieDatabaseClient("BanMePlz", httpClient); }
public SearchAsync() { _mockHttpClient = new MockHttpClient.MockHttpClient(); _sut = new OpenMovieDatabaseClient("api-key", _mockHttpClient); }