Beispiel #1
0
 public PerformAutomaticStudyDownload(
     IGetStudy getStudy,
     IMoveCompletedDownloadToken moveCompletedDownloadToken,
     IAddedDownloadTokensCache addedDownloadTokensCache)
 {
     this.moveCompletedDownloadToken = moveCompletedDownloadToken;
     this.addedDownloadTokensCache   = addedDownloadTokensCache;
     this.getStudy = getStudy;
 }
Beispiel #2
0
 public TryAddDownloadToken(
     IAddedDownloadTokensCache addedDownloadTokensCache,
     IReadDownloadToken readDownloadToken,
     ILogger <TryAddDownloadToken> logger)
 {
     this.readDownloadToken        = readDownloadToken;
     this.logger                   = logger;
     this.addedDownloadTokensCache = addedDownloadTokensCache;
 }
Beispiel #3
0
        public TryAddDownloadTokenTests()
        {
            this.addedDownloadTokensCache = Substitute.For <IAddedDownloadTokensCache>();
            this.readDownloadToken        = Substitute.For <IReadDownloadToken>();
            this.logger = Substitute.For <ILogger <TryAddDownloadToken> >();

            this.target = new(
                this.addedDownloadTokensCache,
                this.readDownloadToken,
                this.logger);
        }
        public PerformAutomaticStudyDownloadTests()
        {
            this.getStudy = Substitute.For <IGetStudy>();
            this.moveCompletedDownloadToken = Substitute.For <IMoveCompletedDownloadToken>();
            this.addedDownloadTokensCache   = Substitute.For <IAddedDownloadTokensCache>();

            this.target = new PerformAutomaticStudyDownload(
                this.getStudy,
                this.moveCompletedDownloadToken,
                this.addedDownloadTokensCache);
        }