public void SetUp() { _fileServiceMock = new Mock<IFileService>(); _traverseServiceMock = new Mock<ITraverseService>(); _uiContextStub = new ContextStub(); _backgroundWorkerMock = new Mock<IBackgroundWorker>(); _worker = new RandomizerWorker(_fileServiceMock.Object, _traverseServiceMock.Object, _uiContextStub, _backgroundWorkerMock.Object); }
public void SetUp() { fileSystemMock = new Mock<IFileSystem>(); fileHelperMock = new Mock<IFileHelper>(); generatorMock = new Mock<IUniqueCharsGenerator>(); settingsMock = new Mock<CopyWorkerSettings>(); _uiContextStub = new ContextStub(); _backgroundWorkerMock = new Mock<IBackgroundWorker>(); _worker = new CopyWorker(fileSystemMock.Object, fileHelperMock.Object, _uiContextStub, _backgroundWorkerMock.Object, generatorMock.Object); _parameters = new CopyWorkerParameters { Settings = settingsMock.Object, OnStarted = () => { }, OnFileChanged = (f) => { }, OnProgressChanged = (i) => { }, OnFinished = () => { }, OnFailed = (s) => { }, OnCancelled = () => { } }; }