コード例 #1
0
        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));
        }
コード例 #2
0
        protected ITheTvDbApiDownloader CreateDownloader()
        {
            var configurationValues = new TheTvDbConfigurationValues(new TestConfigurationValues());

            return(new TheTvDbApiDownloader(configurationValues, new HttpDownloader()));
        }