protected override void GivenThat() { base.GivenThat(); _counterFactory = GenerateMock <ICounterFactory>(); _stateProvider = GenerateMock <IStateProvider>(); _webClientFactory = new WebClientFactory(); _directoryInfoProvider = GenerateMock <IDirectoryInfoProvider>(); _fileUtilities = GenerateMock <IFileUtilities>(); _commandExecuter = GenerateMock <ICommandExecuter>(); _factory = new EpisodeDownloaderFactory(_webClientFactory, _directoryInfoProvider, _fileUtilities, _stateProvider, _counterFactory, _commandExecuter); }
protected override void GivenThat() { base.GivenThat(); _counterFactory = GenerateMock <ICounterFactory>(); _stateProvider = GenerateMock <IStateProvider>(); _webClientFactory = GenerateMock <IWebClientFactory>(); _commandExecuter = GenerateMock <ICommandExecuter>(); _downloaderFactory = new EpisodeDownloaderFactory(_webClientFactory, _directoryInfoProvider, _fileUtilities, _stateProvider, _counterFactory, _commandExecuter); _downloadItems = new List <ISyncItem>(10); SetupData(); SetupStubs(); _converter = new SyncItemToEpisodeDownloaderTaskConverter(_downloaderFactory); }
/// <summary> /// construct the converter /// </summary> public SyncItemToEpisodeDownloaderTaskConverter(IEpisodeDownloaderFactory downloaderFactory) { _downloaderFactory = downloaderFactory; }