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;
 }
Exemple #2
0
        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);
        }