public MovieProcessorTests() { _plexService = Substitute.For <IPlexService>(); _mediaItemProcessor = Substitute.For <IMediaItemProcessor>(); var loggerFactory = Substitute.For <ILoggerFactory>(); loggerFactory.CreateLogger <MovieProcessor>().Returns(Substitute.For <ILogger>()); var plexSettings = new PlexSettingsBuilder().Build(); _underTest = new MovieProcessor(_plexService, _mediaItemProcessor, plexSettings, loggerFactory); }
public SyncLibrariesCommandHandlerTests() { _plexApi = Substitute.For <IPlexApi>(); _plexService = Substitute.For <IPlexService>(); _unitOfWork = Substitute.For <IUnitOfWork>(); var plexSettings = new PlexSettingsBuilder().Build(); var options = Substitute.For <IOptionsSnapshot <PlexSettings> >(); options.Value.Returns(plexSettings); _underTest = new SyncLibrariesCommandHandler(_plexApi, _plexService, _unitOfWork, options); }
public TvProcessorTests() { _plexApi = Substitute.For <IPlexApi>(); _plexService = Substitute.For <IPlexService>(); _mediaItemProcessor = Substitute.For <IMediaItemProcessor>(); _agentGuidParser = Substitute.For <IAgentGuidParser>(); var loggerFactory = Substitute.For <ILoggerFactory>(); loggerFactory.CreateLogger <TvProcessor>().Returns(Substitute.For <ILogger>()); var plexSettings = new PlexSettingsBuilder().Build(); _underTest = new TvProcessor(_plexApi, _plexService, _mediaItemProcessor, plexSettings, _agentGuidParser, loggerFactory); }
public AddAdminCommandHandlerTests() { _userService = Substitute.For <IUserService>(); _tokenService = Substitute.For <ITokenService>(); _plexService = Substitute.For <IPlexService>(); _plexApi = Substitute.For <IPlexApi>(); _unitOfWork = Substitute.For <IUnitOfWork>(); var logger = Substitute.For <ILogger <AddAdminCommandHandler> >(); var settings = new PlexSettingsBuilder().Build(); _plexSettings = Substitute.For <IOptionsSnapshot <PlexSettings> >(); _plexSettings.Value.Returns(settings); _underTest = new AddAdminCommandHandler(_userService, _plexService, _tokenService, _unitOfWork, _plexApi, _plexSettings, logger); }
public PlexSyncTests() { _plexApi = Substitute.For <IPlexApi>(); _plexService = Substitute.For <IPlexService>(); _processorProvider = Substitute.For <IProcessorProvider>(); _completionService = Substitute.For <ICompletionService>(); _unitOfWork = Substitute.For <IUnitOfWork>(); var logger = Substitute.For <ILogger <PlexSync> >(); var plexSettings = new PlexSettingsBuilder().Build(); var options = Substitute.For <IOptionsSnapshot <PlexSettings> >(); options.Value.Returns(plexSettings); _underTest = new PlexSync(_plexApi, _plexService, _completionService, _processorProvider, _unitOfWork, options, logger); }