Exemplo n.º 1
0
 public RunDownloader(
     IEnsureAuthenticated ensureAuthenticated,
     IGetCreatedOutputFolder getCreatedOutputFolder,
     IMonitorDownloads monitorDownloads,
     IProcessDownloads processDownloads,
     ILogger <RunDownloader> logger)
 {
     this.getCreatedOutputFolder = getCreatedOutputFolder;
     this.ensureAuthenticated    = ensureAuthenticated;
     this.monitorDownloads       = monitorDownloads;
     this.processDownloads       = processDownloads;
     this.logger = logger;
 }
        public RunDownloaderTests()
        {
            this.ensureAuthenticated    = Substitute.For <IEnsureAuthenticated>();
            this.getCreatedOutputFolder = Substitute.For <IGetCreatedOutputFolder>();
            this.monitorDownloads       = Substitute.For <IMonitorDownloads>();
            this.processDownloads       = Substitute.For <IProcessDownloads>();
            this.logger = Substitute.For <ILogger <RunDownloader> >();

            this.target = new (
                this.ensureAuthenticated,
                this.getCreatedOutputFolder,
                this.monitorDownloads,
                this.processDownloads,
                this.logger);
        }