public virtual void Setup() { _blacklistStore = MockRepository.GenerateStub<IBlacklistStore>(); _videoScannerProvider = MockRepository.GenerateStub<IVideoScannerProvider>(); _videoScanner = MockRepository.GenerateStub<IVideoScanner>(); _randomProvider = new RandomProvider(RandomSeed); _videoScannerProvider.Stub(x => x.GetVideoScanner(Arg<VideoScannerOptions>.Is.Anything)).Return(_videoScanner); GivenPlaylistConfiguration = new PlaylistConfigurationBuilder(); }
public PlaylistCreator(IBlacklistStore blacklistStore = null, IVideoScannerProvider videoScannerProvider = null, IRandomProvider randomProvider = null) { _blacklistStore = blacklistStore ?? new BlacklistStore(); _videoScannerProvider = videoScannerProvider ?? new VideoScannerProvider(); _randomProvider = randomProvider ?? new RandomProvider(); }