public void WatchTestProject(ProjectWatcher project) { var fileWatcher = new CustomFileWatcher(_memoryCache, project.ProjectWatcherId, project.ProjectWatchPath, project.FileToWatch); fileWatcher.OnChange = _testRunnerService.RunTests; _fileWatcherLookUp.Add(project.ProjectWatcherId, fileWatcher); }
public void WatchForChangesInWatchedProjectFile() { var myApplicationId = Guid.NewGuid(); var projectWatcherFileWatcher = new CustomFileWatcher(_memoryCache, myApplicationId, _appDataService.GetAutoTestRunnerDataFolderPath(), _appDataService.GetAutoWatcherDb()); projectWatcherFileWatcher.OnChange = OnWatchProjectFileChanged; _fileWatcherLookUp.Add(myApplicationId, projectWatcherFileWatcher); }