コード例 #1
0
        public void Setup()
        {
            _customStartDateSpecification = Mocker.Resolve<CustomStartDateSpecification>();

            firstEpisode = new Episode { AirDate = DateTime.Today };
            secondEpisode = new Episode { AirDate = DateTime.Today };

            fakeSeries = Builder<Series>.CreateNew()
                .With(c => c.Monitored = true)
                .With(c => c.CustomStartDate = null)
                .Build();

            parseResultMulti = new EpisodeParseResult
            {
                SeriesTitle = "Title",
                Series = fakeSeries,
                EpisodeNumbers = new List<int> { 3, 4 },
                SeasonNumber = 12,
                Episodes = new List<Episode> { firstEpisode, secondEpisode }
            };

            parseResultSingle = new EpisodeParseResult
            {
                SeriesTitle = "Title",
                Series = fakeSeries,
                EpisodeNumbers = new List<int> { 3 },
                SeasonNumber = 12,
                Episodes = new List<Episode> { firstEpisode }
            };
        }
コード例 #2
0
 public AllowedDownloadSpecification(QualityAllowedByProfileSpecification qualityAllowedByProfileSpecification,
     UpgradeDiskSpecification upgradeDiskSpecification, AcceptableSizeSpecification acceptableSizeSpecification,
     AlreadyInQueueSpecification alreadyInQueueSpecification, RetentionSpecification retentionSpecification,
     AllowedReleaseGroupSpecification allowedReleaseGroupSpecification, CustomStartDateSpecification customStartDateSpecification,
     LanguageSpecification languageSpecification)
 {
     _qualityAllowedByProfileSpecification = qualityAllowedByProfileSpecification;
     _upgradeDiskSpecification = upgradeDiskSpecification;
     _acceptableSizeSpecification = acceptableSizeSpecification;
     _alreadyInQueueSpecification = alreadyInQueueSpecification;
     _retentionSpecification = retentionSpecification;
     _allowedReleaseGroupSpecification = allowedReleaseGroupSpecification;
     _customStartDateSpecification = customStartDateSpecification;
     _languageSpecification = languageSpecification;
 }
コード例 #3
0
 public AllowedDownloadSpecification(QualityAllowedByProfileSpecification qualityAllowedByProfileSpecification,
                                     UpgradeDiskSpecification upgradeDiskSpecification, AcceptableSizeSpecification acceptableSizeSpecification,
                                     AlreadyInQueueSpecification alreadyInQueueSpecification, RetentionSpecification retentionSpecification,
                                     AllowedReleaseGroupSpecification allowedReleaseGroupSpecification, CustomStartDateSpecification customStartDateSpecification,
                                     LanguageSpecification languageSpecification)
 {
     _qualityAllowedByProfileSpecification = qualityAllowedByProfileSpecification;
     _upgradeDiskSpecification             = upgradeDiskSpecification;
     _acceptableSizeSpecification          = acceptableSizeSpecification;
     _alreadyInQueueSpecification          = alreadyInQueueSpecification;
     _retentionSpecification           = retentionSpecification;
     _allowedReleaseGroupSpecification = allowedReleaseGroupSpecification;
     _customStartDateSpecification     = customStartDateSpecification;
     _languageSpecification            = languageSpecification;
 }