public SeriesRepository(SeriesReader seriesReader = null, SeriesFolderMappingReader seriesFolderMappingReader = null, SeriesFolderMappingWriter seriesFolderMappingWriter = null) { SeriesReader = seriesReader ?? new SeriesReader(); SeriesFolderMappingReader = seriesFolderMappingReader ?? new SeriesFolderMappingReader(); SeriesFolderMappingWriter = seriesFolderMappingWriter ?? new SeriesFolderMappingWriter(); }
public EpisodeDataRepository(IList<ITVShowDataRetriever> dataRetrievers = null, EpisodeWriter episodeWriter = null, SeriesFolderMappingWriter seriesFolderMappingWriter = null, SeasonWriter seasonWriter = null) { EpisodeWriter = episodeWriter ?? new EpisodeWriter(); SeriesFolderMappingWriter = seriesFolderMappingWriter ?? new SeriesFolderMappingWriter(); SeasonWriter = seasonWriter ?? new SeasonWriter(); DataRetrievers = dataRetrievers ?? new List<ITVShowDataRetriever> { new LocalDatabaseDataRetriever(), new EPGuidesDataRetriever() }; }