Exemplo n.º 1
0
        public void TestMethod_AddDoor()
        {
            //Arrange -> Set things up.

            //Act - Do some work
            _kIRepo.AddDoor(1, "A34");
            //Assert check to see if the work is working
            Assert.IsTrue(badges.DoorNames.Contains("A34"));
        }
Exemplo n.º 2
0
        private void AddADoor()
        {
            Console.Clear();
            Console.WriteLine("Please input a valid dictionary key.");
            int userInput = int.Parse(Console.ReadLine());

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

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

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