Beispiel #1
0
        public void SetUp()
        {
            _downloadFilesQueue = new DownloadFilesQueue();
            _fileDownloader     = Substitute.For <IFileDownloader>();
            _fileUnzipper       = Substitute.For <IFileUnzipper>();
            TestObj             = new DownloadPipe(_fileDownloader, _fileUnzipper, _downloadFilesQueue);

            _downloadFilesQueue.AddToDownload(DL1);
            _downloadFilesQueue.Next();
        }
Beispiel #2
0
 public YgoProServerDataRetriever(
     IFTPDownloader fTPDownloader,
     IAdminConfig adminConfig,
     IFileUnzipper unzipper,
     IDuelLogConverter duelLogConverter,
     IMediator mediator,
     YgoProAnalyticsDatabase db)
 {
     _fTPDownloader    = fTPDownloader;
     _adminConfig      = adminConfig;
     _unzipper         = unzipper;
     _duelLogConverter = duelLogConverter;
     _mediator         = mediator;
     _db = db;
 }
Beispiel #3
0
 public DownloadPipe(IFileDownloader fileDownloader, IFileUnzipper fileUnzipper, DownloadFilesQueue downloadFilesQueue)
 {
     _fileDownloader     = fileDownloader;
     _fileUnzipper       = fileUnzipper;
     _downloadFilesQueue = downloadFilesQueue;
 }