コード例 #1
0
        public void Run()
        {
            int appendersCount = int.Parse(Console.ReadLine());

            for (int i = 0; i < appendersCount; i++)
            {
                var appenderArgs = Console.ReadLine().Split();

                this.commandInterpreter.AddAppender(appenderArgs);
            }

            var command = Console.ReadLine();

            while (command != "END")
            {
                var reportArgs = command.Split("|");
                commandInterpreter.AddReport(reportArgs);

                command = Console.ReadLine();
            }

            commandInterpreter.PrintInfo();
        }