public IEditingService GetViewingService(string rootStoragePath, IStorageProvider customStorageProvider, string workingDirectoryPath, IStorageProvider customWorkingStorageProvider) { IFileStorage adapter = new FileStorageAdapter(customStorageProvider); IFileStorage tempStorageAdapter = new FileStorageAdapter(customWorkingStorageProvider); IEditingService viewingService = new EditingService(rootStoragePath, adapter, workingDirectoryPath, tempStorageAdapter); return viewingService; }
public IEditingService GetViewingService(string rootStoragePath, IStorageProvider customStorageProvider, string workingDirectoryPath, IStorageProvider customWorkingStorageProvider) { IFileStorage adapter = new FileStorageAdapter(customStorageProvider); IFileStorage tempStorageAdapter = new FileStorageAdapter(customWorkingStorageProvider); IEditingService viewingService = new EditingService(rootStoragePath, adapter, workingDirectoryPath, tempStorageAdapter); return(viewingService); }