Beispiel #1
0
 public FileCache(IFileRead fileRead,
                  IFileWrite fileWrite,
                  IDateTimeProvider dateTimeProvider,
                  IJosnService josnService,
                  IFileOperationsProvider fileOperationsProvider,
                  IDirectoryOperationsProvider directoryOperationsProvider)
 {
     this.fileRead                    = fileRead;
     this.fileWrite                   = fileWrite;
     this.dateTimeProvider            = dateTimeProvider;
     this.josnService                 = josnService;
     this.fileOperationsProvider      = fileOperationsProvider;
     this.directoryOperationsProvider = directoryOperationsProvider;
     this._pathToDirectory            = this.directoryOperationsProvider.GetCurrentDirectory();
 }
 public FilesOperation(IFileRead <long> fileRead, IFileWrite <FileData> fileWrite, IGetFiles filesGet)
 {
     _fileRead  = fileRead;
     _fileWrite = fileWrite;
     _filesGet  = filesGet;
 }