public FolderStatusManager(string localFolderPath, string remoteFolderName, IFileManager fileManager) { _folderStateSaveFilePath = "\\" + _statusFileFolderName + "\\" + _statusFileName; _folderState = new FolderState(); _fileManager = fileManager; if (_fileManager.Exists(_folderStateSaveFilePath)) { _folderState.Definition = _fileManager.GetContent(_folderStateSaveFilePath); _createdFromFile = true; return; } if (_fileManager.GetFilenames().Count() > 0) { throw new InvalidDataException("New Sync Folder must be empty"); } _folderState .LocalPath(localFolderPath) .RemotePath(remoteFolderName); //SaveFolderState(_folderState.LocalPath()); SaveStatus(); }