Beispiel #1
0
        public void TestMethod_DeleteDoor()
        {
            //Arrange -> Set things up.

            //Act - Do some work
            _kIRepo.DeleteDoor(1, "333");
            //Assert check to see if the work is working
            Assert.IsTrue(badges.DoorNames.Contains("A2"));
        }
Beispiel #2
0
        private void RemoveDoor()
        {
            Console.Clear();
            Console.WriteLine("Please input a valid dictionary key.");
            int userInput = int.Parse(Console.ReadLine());

            Console.WriteLine("Please input a valid door name.");
            string userInputName = Console.ReadLine();

            bool IsSuccessful = _dictRepo.DeleteDoor(userInput, userInputName);

            if (IsSuccessful)
            {
                Console.WriteLine("Door Removed");
            }
            else
            {
                Console.WriteLine("Door Not Removed");
            }
        }