public void Setup()
            {
                _seriesInfo = new SeriesInfo
                {
                    Name              = "SeriesName",
                    IndexNumber       = 3,
                    ParentIndexNumber = 1,
                    ProviderIds       = new Dictionary <string, string>
                    {
                        { "Source", "66" }
                    }
                };
                _mediaItemProcessorResult = Left <ProcessFailedResult, IMetadataFoundResult <Series> >(
                    new ProcessFailedResult("FailedSource",
                                            "MediaItemName", MediaItemTypes.Series, "Failure reason"));

                _mediaItemProcessor = Substitute.For <IMediaItemProcessor>();
                _mediaItemProcessor.GetResultAsync(_seriesInfo, MediaItemTypes.Series, Enumerable.Empty <EmbyItemId>())
                .Returns(x => _mediaItemProcessorResult);

                _logManager = Substitute.For <ILogManager>();

                _logger = Substitute.For <ILogger>();
                _logger.WhenForAnyArgs(l => l.Debug(null, null)).Do(c => Console.WriteLine($"Debug: {c.Arg<string>()}"));

                _logManager.GetLogger("SeriesProvider").Returns(_logger);

                _pluginConfiguration = Substitute.For <IPluginConfiguration>();
                _pluginConfiguration.ExcludedSeriesNames.Returns(Enumerable.Empty <string>());

                _seriesProvider = new SeriesProvider(_logManager, _mediaItemProcessor, _pluginConfiguration);
            }
 public RefreshEpisodeMetadata(MediaFileProvider mediaFileProvider, SeriesProvider seriesProvider,
                               MetadataProvider metadataProvider)
 {
     _mediaFileProvider = mediaFileProvider;
     _seriesProvider    = seriesProvider;
     _metadataProvider  = metadataProvider;
 }
Esempio n. 3
0
 public EpisodeSearch(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider, IndexerProvider indexerProvider,
                      SceneMappingProvider sceneMappingProvider, AllowedDownloadSpecification allowedDownloadSpecification,
                      SearchHistoryProvider searchHistoryProvider)
     : base(seriesProvider, episodeProvider, downloadProvider, indexerProvider, sceneMappingProvider,
            allowedDownloadSpecification, searchHistoryProvider)
 {
 }
Esempio n. 4
0
 public DiskScanJob(SeriesProvider seriesProvider, DiskScanProvider diskScanProvider,
                    ConfigProvider configProvider)
 {
     _seriesProvider   = seriesProvider;
     _diskScanProvider = diskScanProvider;
     _configProvider   = configProvider;
 }
Esempio n. 5
0
 public DailyEpisodeSearch(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider, IndexerProvider indexerProvider,
                      SceneMappingProvider sceneMappingProvider, AllowedDownloadSpecification allowedDownloadSpecification,
                      SearchHistoryProvider searchHistoryProvider)
                 : base(seriesProvider, episodeProvider, downloadProvider, indexerProvider, sceneMappingProvider, 
                        allowedDownloadSpecification, searchHistoryProvider)
     {
 }
Esempio n. 6
0
 public UpdateInfoJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider,
                      ReferenceDataProvider referenceDataProvider, ConfigProvider configProvider)
 {
     _seriesProvider        = seriesProvider;
     _episodeProvider       = episodeProvider;
     _referenceDataProvider = referenceDataProvider;
     _configProvider        = configProvider;
 }
Esempio n. 7
0
        //
        // GET: /Series/

        public SeriesController(SeriesProvider seriesProvider, QualityProvider qualityProvider,
                                JobProvider jobProvider, SeasonProvider seasonProvider,
                                ConfigProvider configProvider)
        {
            _seriesProvider  = seriesProvider;
            _qualityProvider = qualityProvider;
            _jobProvider     = jobProvider;
            _seasonProvider  = seasonProvider;
            _configProvider  = configProvider;
        }
 public RenameSeasonJob(MediaFileProvider mediaFileProvider, DiskScanProvider diskScanProvider,
                        ExternalNotificationProvider externalNotificationProvider, SeriesProvider seriesProvider,
                        MetadataProvider metadataProvider)
 {
     _mediaFileProvider            = mediaFileProvider;
     _diskScanProvider             = diskScanProvider;
     _externalNotificationProvider = externalNotificationProvider;
     _seriesProvider   = seriesProvider;
     _metadataProvider = metadataProvider;
 }
Esempio n. 9
0
 public UserSeriesPageViewModel(
     SeriesProvider seriesRepository,
     UserProvider userProvider,
     PageManager pageManager,
     AddSubscriptionCommand addSubscriptionCommand
     )
 {
     _seriesProvider        = seriesRepository;
     _userProvider          = userProvider;
     _pageManager           = pageManager;
     AddSubscriptionCommand = addSubscriptionCommand;
 }
Esempio n. 10
0
 protected SearchBase(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider,
                      IndexerProvider indexerProvider, SceneMappingProvider sceneMappingProvider,
                      AllowedDownloadSpecification allowedDownloadSpecification,
                      SearchHistoryProvider searchHistoryProvider)
 {
     _seriesProvider               = seriesProvider;
     _episodeProvider              = episodeProvider;
     _downloadProvider             = downloadProvider;
     _indexerProvider              = indexerProvider;
     _sceneMappingProvider         = sceneMappingProvider;
     _allowedDownloadSpecification = allowedDownloadSpecification;
     _searchHistoryProvider        = searchHistoryProvider;
 }
Esempio n. 11
0
 protected SearchBase(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider,
                      IndexerProvider indexerProvider, SceneMappingProvider sceneMappingProvider,
                      AllowedDownloadSpecification allowedDownloadSpecification,
                      SearchHistoryProvider searchHistoryProvider)
 {
     _seriesProvider = seriesProvider;
     _episodeProvider = episodeProvider;
     _downloadProvider = downloadProvider;
     _indexerProvider = indexerProvider;
     _sceneMappingProvider = sceneMappingProvider;
     _allowedDownloadSpecification = allowedDownloadSpecification;
     _searchHistoryProvider = searchHistoryProvider;
 }
Esempio n. 12
0
 public AddSubscriptionCommand(
     SubscriptionManager subscriptionManager,
     UserProvider userProvider,
     ChannelProvider channelProvider,
     NotificationService notificationService,
     SeriesProvider seriesRepository
     )
 {
     _subscriptionManager = subscriptionManager;
     _userProvider        = userProvider;
     _channelProvider     = channelProvider;
     _notificationService = notificationService;
     _seriesRepository    = seriesRepository;
 }
 public AddSeriesController(RootDirProvider rootFolderProvider,
                            ConfigProvider configProvider,
                            QualityProvider qualityProvider, TvDbProvider tvDbProvider,
                            SeriesProvider seriesProvider, JobProvider jobProvider,
                            DiskProvider diskProvider)
 {
     _rootFolderProvider = rootFolderProvider;
     _configProvider     = configProvider;
     _qualityProvider    = qualityProvider;
     _tvDbProvider       = tvDbProvider;
     _seriesProvider     = seriesProvider;
     _jobProvider        = jobProvider;
     _diskProvider       = diskProvider;
 }
Esempio n. 14
0
 public ImportNewSeriesJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider,
                           MediaFileProvider mediaFileProvider, UpdateInfoJob updateInfoJob,
                           DiskScanJob diskScanJob, BannerDownloadJob bannerDownloadJob,
                           SeasonProvider seasonProvider, XemUpdateJob xemUpdateJob)
 {
     _seriesProvider    = seriesProvider;
     _episodeProvider   = episodeProvider;
     _mediaFileProvider = mediaFileProvider;
     _updateInfoJob     = updateInfoJob;
     _diskScanJob       = diskScanJob;
     _bannerDownloadJob = bannerDownloadJob;
     _seasonProvider    = seasonProvider;
     _xemUpdateJob      = xemUpdateJob;
 }
Esempio n. 15
0
 public SettingsController(ConfigProvider configProvider, IndexerProvider indexerProvider,
                           QualityProvider qualityProvider, AutoConfigureProvider autoConfigureProvider,
                           SeriesProvider seriesProvider, ExternalNotificationProvider externalNotificationProvider,
                           QualityTypeProvider qualityTypeProvider, ConfigFileProvider configFileProvider,
                           NewznabProvider newznabProvider, MetadataProvider metadataProvider,
                           JobProvider jobProvider)
 {
     _externalNotificationProvider = externalNotificationProvider;
     _qualityTypeProvider          = qualityTypeProvider;
     _configFileProvider           = configFileProvider;
     _newznabProvider       = newznabProvider;
     _metadataProvider      = metadataProvider;
     _jobProvider           = jobProvider;
     _configProvider        = configProvider;
     _indexerProvider       = indexerProvider;
     _qualityProvider       = qualityProvider;
     _autoConfigureProvider = autoConfigureProvider;
     _seriesProvider        = seriesProvider;
 }
Esempio n. 16
0
 public SubscriptionManager(
     SubscriptionRegistrationRepository subscriptionRegistrationRepository,
     SubscriptionFeedResultRepository subscriptionFeedResultRepository,
     ChannelProvider channelProvider,
     SearchProvider searchProvider,
     UserProvider userProvider,
     MylistProvider mylistProvider,
     NicoVideoProvider nicoVideoProvider,
     SeriesProvider seriesRepository,
     NicoVideoOwnerCacheRepository nicoVideoOwnerRepository
     )
 {
     _subscriptionRegistrationRepository = subscriptionRegistrationRepository;
     _subscriptionFeedResultRepository   = subscriptionFeedResultRepository;
     _channelProvider          = channelProvider;
     _searchProvider           = searchProvider;
     _userProvider             = userProvider;
     _mylistProvider           = mylistProvider;
     _nicoVideoProvider        = nicoVideoProvider;
     _seriesRepository         = seriesRepository;
     _nicoVideoOwnerRepository = nicoVideoOwnerRepository;
 }
Esempio n. 17
0
 public SeriesPageViewModel(
     ILoggerFactory loggerFactory,
     SeriesProvider seriesRepository,
     VideoPlayWithQueueCommand videoPlayWithQueueCommand,
     AddSubscriptionCommand addSubscriptionCommand,
     SelectionModeToggleCommand selectionModeToggleCommand,
     PlaylistPlayAllCommand playlistPlayAllCommand
     )
     : base(loggerFactory.CreateLogger <SeriesPageViewModel>())
 {
     _seriesProvider            = seriesRepository;
     VideoPlayWithQueueCommand  = videoPlayWithQueueCommand;
     AddSubscriptionCommand     = addSubscriptionCommand;
     SelectionModeToggleCommand = selectionModeToggleCommand;
     PlaylistPlayAllCommand     = playlistPlayAllCommand;
     CurrentPlaylistToken       = Observable.CombineLatest(
         this.ObserveProperty(x => x.SeriesVideoPlaylist),
         this.ObserveProperty(x => x.SelectedSortOption),
         (x, y) => new PlaylistToken(x, y)
         )
                                  .ToReadOnlyReactivePropertySlim()
                                  .AddTo(_CompositeDisposable);
 }
 public MonitoredEpisodeSpecification(SeriesProvider seriesProvider, EpisodeProvider episodeProvider)
 {
     _seriesProvider  = seriesProvider;
     _episodeProvider = episodeProvider;
 }
Esempio n. 19
0
 public DeleteSeriesJob(SeriesProvider seriesProvider, RecycleBinProvider recycleBinProvider)
 {
     _seriesProvider     = seriesProvider;
     _recycleBinProvider = recycleBinProvider;
 }
Esempio n. 20
0
 public SeriesProviderEntryPoint(IApplicationHost applicationHost)
 {
     this.seriesProvider =
         DependencyConfiguration.Resolve <SeriesProvider>(applicationHost);
 }
 public MonitoredEpisodeSpecification(SeriesProvider seriesProvider, EpisodeProvider episodeProvider)
 {
     _seriesProvider = seriesProvider;
     _episodeProvider = episodeProvider;
 }
Esempio n. 22
0
 public MediaSyncService(SeriesProvider seriesProvider)
 {
     _seriesProvider = seriesProvider;
 }
Esempio n. 23
0
 public BannerDownloadJob(SeriesProvider seriesProvider, BannerProvider bannerProvider)
 {
     _seriesProvider = seriesProvider;
     _bannerProvider = bannerProvider;
 }
Esempio n. 24
0
 public SeriesController(SeriesProvider seriesProvider)
 {
     _seriesProvider = seriesProvider;
 }
Esempio n. 25
0
 public SeriesVideoPlaylistFactory(SeriesProvider seriesProvider)
 {
     _seriesProvider = seriesProvider;
 }