public static void Main() { Tester tester = new Tester(); DownloadManager downloadManager = new DownloadManager(); IOManager ioManager=new IOManager(); StudentsRepository repo=new StudentsRepository(new RepositorySorter(), new RepositoryFilter()); CommandInterpreter currentInterpreter=new CommandInterpreter(tester, repo, downloadManager, ioManager); InputReader reader=new InputReader(currentInterpreter); reader.StartReadingCommands(); }
public static void Main() { IContentComparer tester = new Tester(); IDownloadManager downloadManager = new DownloadManager(); IDirectoryManager ioManager = new IOManager(); IDatabase repo = new StudentsRepository(new RepositorySorter(), new RepositioryFilter()); IInterpreter currentInterpreter = new CommandInterpreter(tester, repo, downloadManager, ioManager); IReader reader = new InputReader(currentInterpreter); reader.StartReadingCommands(); }
static void Main() { Tester tester = new Tester(); DownloadManager downloadManager = new DownloadManager(); IOManager ioManager = new IOManager(); StudentsRepository repo = new StudentsRepository(new RepositorySorter(), new RepositioryFilter()); CommandInterpreter currentInterpreter = new CommandInterpreter(tester, repo, downloadManager, ioManager); InputReader reader = new InputReader(currentInterpreter); reader.StartReadingCommands(); }
public void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.currentPath}> "); string input = Console.ReadLine(); input = input.Trim(); while (input != endCommand) { CommandInterpreter.InterpredCommand(input); OutputWriter.WriteMessage($"{SessionData.currentPath}> "); input = Console.ReadLine(); input = input.Trim(); } if (SessionData.taskPool.Count != 0) { Task.WaitAll(SessionData.taskPool.ToArray()); } }
public InputReader(CommandInterpreter interpreter) { this.interpreter = interpreter; }
public InputReader(CommandInterpreter commandInterpreter) { this.commandInterpreter = commandInterpreter; }