Exemple #1
0
 public CommandFactory(string path, bool isRecursive)
 {
     _fileWorker = new FileWorker(path, isRecursive);
 }
Exemple #2
0
 internal FileCommand(FileWorker fileWorker, IFileExecutable <T> executable, IResulter?resulter = null)
 {
     _fileWorker = fileWorker;
     _executable = executable;
     _resulter   = resulter;
 }
Exemple #3
0
 public static ICommand CreateFileCommand <T>(FileWorker fileWorker, IFileExecutable <T> executable,
                                              IResulter?resulter)
 {
     return(new FileCommand <T>(fileWorker, executable, resulter));
 }