public CommandParameters(DirFinderExecutor dirFinderExecutor, IReaderWriter readerWritter, CommandLineParams clParams, RootDirItem rootItem) { this.DirFinderExecutor = dirFinderExecutor; this.ReaderWriter = readerWritter; this.CLParams = clParams; this.RootItem = rootItem; }
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); } }