public FileSystemWatchingServiceTests() { _fileSystemWatcherMock = new Mock <IFileSystemWatcherWrapper>(); var factoryMock = new Mock <IFileSystemWatcherWrapperFactory>(); factoryMock .Setup(m => m.Create(CurrentDirectory)) .Returns(_fileSystemWatcherMock.Object); _fileSystemWatchingService = new FileSystemWatchingService(factoryMock.Object); }
public FileSystemService(IDispatcherService dispatcherService, IFileNodeService fileNodeService, IFileSystemWatchingService fileSystemWatchingService, INavigationNodeCacheService navigationNodeCacheService, IFilterService filterService, IFileBrowserService fileBrowserService) { Argument.IsNotNull(() => dispatcherService); Argument.IsNotNull(() => fileNodeService); Argument.IsNotNull(() => fileSystemWatchingService); Argument.IsNotNull(() => navigationNodeCacheService); Argument.IsNotNull(() => filterService); Argument.IsNotNull(() => fileBrowserService); _dispatcherService = dispatcherService; _fileNodeService = fileNodeService; _fileSystemWatchingService = fileSystemWatchingService; _navigationNodeCacheService = navigationNodeCacheService; _filterService = filterService; _fileBrowserService = fileBrowserService; Filter = "*.log"; fileSystemWatchingService.ContentChanged += OnFolderContentChanged; }
public FileSystemService(IDispatcherService dispatcherService, IFileNodeService fileNodeService, IFileSystemWatchingService fileSystemWatchingService, INavigationNodeCacheService navigationNodeCacheService, IFilterService filterService, IFileBrowserService fileBrowserService) { Argument.IsNotNull(() => dispatcherService); Argument.IsNotNull(() => fileNodeService); Argument.IsNotNull(() => fileSystemWatchingService); Argument.IsNotNull(() => navigationNodeCacheService); Argument.IsNotNull(() => filterService); Argument.IsNotNull(() => fileBrowserService); _dispatcherService = dispatcherService; _fileNodeService = fileNodeService; _fileSystemWatchingService = fileSystemWatchingService; _navigationNodeCacheService = navigationNodeCacheService; _filterService = filterService; _fileBrowserService = fileBrowserService; Filter = "*.log"; fileSystemWatchingService.ContentChanged += OnFolderContentChanged; }