protected async Task <string> GetAuthTokenAsync() { var configurationValues = new TheTvDbConfigurationValues(new TestConfigurationValues()); var localPaths = new TestLocalPaths(); var apiDownloader = CreateDownloader(); var authenticator = new TheTvDbAuthenticator(new RealTimeDateProvider(), configurationValues, localPaths, apiDownloader); return(await authenticator.GetAuthTokenAsync(null)); }
protected ITheTvDbApiDownloader CreateDownloader() { var configurationValues = new TheTvDbConfigurationValues(new TestConfigurationValues()); return(new TheTvDbApiDownloader(configurationValues, new HttpDownloader())); }