namespace CommanderApp.Services; public class MockFileOperations : IFileOperations { public List CopiedFiles { get; } = new(); public List MovedFiles { get; } = new(); public List DeletedItems { get; } = new(); public List CreatedDirectories { get; } = new(); public List OpenedFiles { get; } = new(); public Task CopyAsync(string sourcePath, string targetPath, bool overwrite = true) { CopiedFiles.Add($"{sourcePath} -> {targetPath}"); return Task.FromResult(true); } public Task MoveAsync(string sourcePath, string targetPath, bool overwrite = true) { MovedFiles.Add($"{sourcePath} -> {targetPath}"); return Task.FromResult(true); } public Task DeleteAsync(string path) { DeletedItems.Add(path); return Task.FromResult(true); } public Task CreateDirectoryAsync(string path) { CreatedDirectories.Add(path); return Task.FromResult(true); } public Task OpenFileAsync(string filePath) { OpenedFiles.Add(filePath); return Task.FromResult(true); } public Task CopyDirectoryAsync(string sourceDir, string targetDir) { CopiedFiles.Add($"DIR: {sourceDir} -> {targetDir}"); return Task.FromResult(true); } }