public Application Build() { if (opt == default) { throw new InvalidOperationException("Missing options to run"); } ISearchProjectFiles fileSearcher; if (opt.Interactive) { fileSearcher = new AskSearchProjectFiles(); } else { fileSearcher = new AllSearchProjectFiles(); } return(new Application(opt, fileSearcher, new ProjectAdder())); }
public AskSearchProjectFiles() { allProjectFiles = new AllSearchProjectFiles(); }