Exemplo n.º 1
0
        static void Main()
        {
            var repository = SelectRepository();

            Bootstrap(repository);

            while (true)
            {
                var command = Console.ReadLine();
                if (command == "exit")
                {
                    break;
                }

                try
                {
                    if (_libraryController.ProcessCommand(command))
                    {
                        continue;
                    }
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                    continue;
                }

                _libraryView.ProcessCommand(command);
            }
        }