Пример #1
0
 public CommandParameters(DirFinderExecutor dirFinderExecutor, IReaderWriter readerWritter,
                          CommandLineParams clParams, RootDirItem rootItem)
 {
     this.DirFinderExecutor = dirFinderExecutor;
     this.ReaderWriter      = readerWritter;
     this.CLParams          = clParams;
     this.RootItem          = rootItem;
 }
Пример #2
0
        private static void Execute(CommandLineParams clParams, bool isGetSnapshot, bool isCompare)
        {
            var dirFinder           = clParams.GetNewFinder(new DirAccessDefault());
            var dirFinderExecutor   = new DirFinderExecutor(dirFinder);
            var readerWriter        = new ReaderWriterDefault();
            CommandParameters param = new CommandParameters(dirFinderExecutor, readerWriter, clParams, null);

            if (isGetSnapshot)
            {
                new GetSnashotCommand().Execute(param);
            }

            if (isCompare)
            {
                new CompareSnapshotCommand().Execute(param);
            }
        }