public ApplicationTesterModule(ICouchPotatoApi cpApi, ISonarrApi sonarrApi, IPlexApi plexApi,
                                       ISickRageApi srApi, IHeadphonesApi hpApi, ISettingsService <PlexRequestSettings> pr, ISecurityExtensions security,
                                       IWatcherApi watcherApi, IRadarrApi radarrApi, IEmbyApi emby) : base("test", pr, security)
        {
            this.RequiresAuthentication();

            CpApi         = cpApi;
            SonarrApi     = sonarrApi;
            PlexApi       = plexApi;
            SickRageApi   = srApi;
            HeadphonesApi = hpApi;
            WatcherApi    = watcherApi;
            RadarrApi     = radarrApi;
            Emby          = emby;

            Post["/cp"]         = _ => CouchPotatoTest();
            Post["/sonarr"]     = _ => SonarrTest();
            Post["/radarr"]     = _ => RadarrTest();
            Post["/plex"]       = _ => PlexTest();
            Post["/sickrage"]   = _ => SickRageTest();
            Post["/headphones"] = _ => HeadphonesTest();
            Post["/plexdb"]     = _ => TestPlexDb();
            Post["/watcher"]    = _ => WatcherTest();
            Post["/emby"]       = _ => EmbyTest();
        }
Beispiel #2
0
 public MovieSender(ISettingsService <CouchPotatoSettings> cp, ISettingsService <WatcherSettings> watcher,
                    ICouchPotatoApi cpApi, IWatcherApi watcherApi)
 {
     CouchPotatoSettings = cp;
     WatcherSettings     = watcher;
     CpApi      = cpApi;
     WatcherApi = watcherApi;
 }
Beispiel #3
0
 public WatcherCacher(
     ISettingsService <WatcherSettings> watcher,
     IWatcherApi watcherApi, ICacheProvider cache, IJobRecord rec)
 {
     WatcherSettings = watcher;
     WatcherApi      = watcherApi;
     Cache           = cache;
     Job             = rec;
 }
Beispiel #4
0
 public MovieSender(ISettingsService <CouchPotatoSettings> cp, ISettingsService <WatcherSettings> watcher,
                    ICouchPotatoApi cpApi, IWatcherApi watcherApi, IRadarrApi radarrApi, ISettingsService <RadarrSettings> radarrSettings)
 {
     CouchPotatoSettings = cp;
     WatcherSettings     = watcher;
     CpApi          = cpApi;
     WatcherApi     = watcherApi;
     RadarrSettings = radarrSettings;
     RadarrApi      = radarrApi;
 }