public GetVideoThumbnailsTests(ITestOutputHelper output) { _output = output; var settingsKeyValues = new Dictionary <string, object>(); settingsKeyValues[nameof(Settings.SearchLanguage)] = _englishLanguage; settingsKeyValues[nameof(Settings.PlaybackQuality)] = VideoPlaybackQuality.High.ToString(); var settings = new Settings(settingsKeyValues, null); var tmdbCachedSearchClient = new TmdbCachedSearchClient(new TmdbNetworkClient(new System.Net.Http.HttpClient(), settings.ApiKey)); _ytExplodeVideoService = new YtExplodeVideoService(null, settings, new TmdbApiService(tmdbCachedSearchClient, settings), null); }
public PlayVideoTests(ITestOutputHelper output) { _output = output; var settingsKeyValues = new Dictionary <string, object>(); settingsKeyValues[nameof(Settings.SearchLanguage)] = _englishLanguage; settingsKeyValues[nameof(Settings.PlaybackQuality)] = VideoPlaybackQuality.High.ToString(); var settings = new Settings(settingsKeyValues, null); var tmdbCachedSearchClient = new TmdbCachedSearchClient(new TmdbNetworkClient(null, settings.ApiKey)); _mockVideoPlayer.Setup(player => player.OpenVideoStreamDirectly(It.IsAny <string>())).Callback <string>(streamUrl => streamUrlResult = streamUrl); _ytExplodeVideoService = new YtExplodeVideoService(null, settings, new TmdbApiService(tmdbCachedSearchClient, settings), _mockVideoPlayer.Object); }