Ejemplo n.º 1
0
        public ConsoleController(IConsoleView view, IArgsParser <string> argsParser)
        {
            mView = view ?? throw new ArgumentNullException("view");

            mView.ClearOutput();

            mArgsParser = argsParser ?? throw new ArgumentNullException("argsParser");

            mView.OnNewCommandSubmited += _processNewCommand;

            mCommandsTable = new Dictionary <string, IConsoleCommand>();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The method clears up current output buffer of the console's view
        /// </summary>

        public void ClearOutput() => mView?.ClearOutput();