Esempio n. 1
0
        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()));
        }
Esempio n. 2
0
 public AskSearchProjectFiles()
 {
     allProjectFiles = new AllSearchProjectFiles();
 }