Exemplo n.º 1
0
        public void ErasingImpact()
        {
            _consoleManager.Header("Check impact of deleting a CI");
            _configItemManager.MicroTableList();
            Console.Write("Write name of node: ");
            string name = Console.ReadLine()?.ToUpper();

            var foundCi = _dbContext.ConfigurationItems.Find(name);

            if (foundCi == null)
            {
                _consoleManager.PressAnyKeyMessage("CI was not found in the system...");
                _consoleManager.LoadFirstScreen();
            }

            Console.WriteLine("HIERARCHY");
            CINode node = BuiildNodesForCI(new CINode {
                Value = foundCi
            });

            PrintNodeToEraseForCi(node);
            Console.WriteLine();

            _consoleManager.PressAnyKeyMessage();
            _consoleManager.LoadFirstScreen();
        }
 private void GoBack()
 {
     _consoleManager.LoadFirstScreen();
 }