示例#1
0
        private void DeleteDoorFromBadge()
        {
            ListAllBadges();
            Console.WriteLine("Enter the ID of the Badge you wish to delete door access from: ");
            string inputAsString = Console.ReadLine();
            int    userInput     = int.Parse(inputAsString);
            bool   accessDeleted = _badgesRepo.DeleteDoorFromBadge(userInput);

            if (accessDeleted)
            {
                Console.WriteLine("The Access was removed from the badge");
            }
            else
            {
                Console.WriteLine("The acces was unable to be removed from the badge.");
            }
        }
示例#2
0
        public void DeleteDoorFromBadge_ReturnTrue()
        {
            bool deleteAccess = _repoBadge.DeleteDoorFromBadge(_badges.BadgeID);

            Assert.IsTrue(deleteAccess);
        }