Ejemplo n.º 1
0
        private void GivenHeldRelease(QualityModel quality)
        {
            var parsedEpisodeInfo = _parsedEpisodeInfo.JsonClone();

            parsedEpisodeInfo.Quality = quality;

            var heldReleases = Builder <PendingRelease> .CreateListOfSize(1)
                               .All()
                               .With(h => h.SeriesId          = _series.Id)
                               .With(h => h.Release           = _release.JsonClone())
                               .With(h => h.ParsedEpisodeInfo = parsedEpisodeInfo)
                               .Build();

            _heldReleases.AddRange(heldReleases);
        }
Ejemplo n.º 2
0
        private void GivenHeldRelease(QualityModel quality)
        {
            var parsedEpisodeInfo = _parsedEpisodeInfo.JsonClone();

            parsedEpisodeInfo.Quality = quality;

            var heldReleases = Builder <PendingRelease> .CreateListOfSize(1)
                               .All()
                               .With(h => h.SeriesId          = _series.Id)
                               .With(h => h.Release           = _release.JsonClone())
                               .With(h => h.ParsedEpisodeInfo = parsedEpisodeInfo)
                               .Build();

            Mocker.GetMock <IPendingReleaseRepository>()
            .Setup(s => s.All())
            .Returns(heldReleases);
        }
Ejemplo n.º 3
0
        private void GivenHeldRelease(string title, string indexer, DateTime publishDate, PendingReleaseReason reason = PendingReleaseReason.Delay)
        {
            var release = _release.JsonClone();

            release.Indexer     = indexer;
            release.PublishDate = publishDate;

            var heldReleases = Builder <PendingRelease> .CreateListOfSize(1)
                               .All()
                               .With(h => h.AuthorId = _author.Id)
                               .With(h => h.Title    = title)
                               .With(h => h.Release  = release)
                               .With(h => h.Reason   = reason)
                               .Build();

            _heldReleases.AddRange(heldReleases);
        }
Ejemplo n.º 4
0
        private void GivenHeldRelease(string title, string indexer, DateTime publishDate)
        {
            var release = _release.JsonClone();

            release.Indexer     = indexer;
            release.PublishDate = publishDate;

            var heldReleases = Builder <PendingRelease> .CreateListOfSize(1)
                               .All()
                               .With(h => h.AuthorId = _author.Id)
                               .With(h => h.Title    = title)
                               .With(h => h.Release  = release)
                               .Build();

            Mocker.GetMock <IPendingReleaseRepository>()
            .Setup(s => s.All())
            .Returns(heldReleases);
        }