Esempio n. 1
0
        private void AddADoor(int badgeID)
        {
            Console.Write("Which door would you like to add?");
            string input = Console.ReadLine();

            bool wasAdded = _repo.AddDoorToBadge(badgeID, input);

            if (wasAdded)
            {
                Console.WriteLine("Door added.");
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("Door could not be added.");
                Console.ReadKey();
            }
        }
        public void AddADoor()
        {
            bool doorWasAdded = _repo.AddDoorToBadge(3345, "C7");

            Assert.IsTrue(doorWasAdded);
        }