public void Attach(ITriggerHander handler)
{
_handlers.Add(handler);
}
public void Setup() { _folderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); _filePath = Path.Combine(_folderPath, "test.txt"); Directory.CreateDirectory(_folderPath); _trigger = new FolderChangedTrigger(_folderPath, "*.*"); _trigger.Attach(this); }