private void EnterNewBadge()
        {
            Console.ForegroundColor = ConsoleColor.DarkBlue;
            Console.Clear();
            BadgeItems content = new BadgeItems();

            Console.WriteLine("What is the number on the badge:");
            Console.ForegroundColor = ConsoleColor.Gray;
            content.BadgeId         = int.Parse(Console.ReadLine());
            Console.ForegroundColor = ConsoleColor.DarkBlue;
            Console.WriteLine("List a door that it needs access to:");
            Console.ForegroundColor = ConsoleColor.Gray;
            List <string> newList = new List <string>();
            string        input   = Console.ReadLine();

            newList.Add(input);

            bool keepRunning = true;

            while (keepRunning)
            {
                Console.ForegroundColor = ConsoleColor.DarkBlue;
                Console.WriteLine("Any other doors(y/n)?");
                Console.ForegroundColor = ConsoleColor.Gray;
                string answer = Console.ReadLine();

                if (answer.ToLower() == "y")
                {
                    Console.ForegroundColor = ConsoleColor.DarkBlue;
                    Console.WriteLine("List a door that it needs access to:");
                    Console.ForegroundColor = ConsoleColor.Gray;
                    input = Console.ReadLine();
                    newList.Add(input);
                }

                else if (answer.ToLower() == "n")
                {
                    keepRunning = false;
                }

                else
                {
                    Console.ForegroundColor = ConsoleColor.DarkRed;
                    Console.WriteLine("Opton is invalid.");
                }
            }
            content.DoorName = newList;
            _badgeItemsRepo.AddNewBadge(content);
            Console.ForegroundColor = ConsoleColor.DarkBlue;
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
        }
 public void Arrange()
 {
     _repo    = new BadgeItemsRepository();
     _content = new BadgeItems(33245, new List <string>()
     {
         "A1", "A2", "A3"
     });
     _repo.AddNewBadge(_content);
 }
        public void AddBadge_ShouldGetCorrectBoolean()
        {
            //ARRANGE
            BadgeItems           newBadge = new BadgeItems();
            BadgeItemsRepository repo     = new BadgeItemsRepository();

            //ACT
            bool addResult = repo.AddNewBadge(newBadge);

            //ASSERT
            Assert.IsTrue(addResult);
        }