Пример #1
0
        private List <Block> GetTalks()
        {
            var processedTalks = new List <Block>();

            while (!processedTalks.Any())
            {
                _display.Display(Constants.FilePathPrompt);

                var input = _inputCollector.Collect();

                if (UserIsQuittingApplication(input))
                {
                    _quit = true;  // TODO: Command Query separation?
                    break;
                }

                var talks = _inputProvider.ProvideInput(input);

                processedTalks = _inputProcessor.Process(talks);
            }

            return(processedTalks);
        }
Пример #2
0
 public List <string> GetInput()
 {
     return(inputProvider.ProvideInput());
 }