Example #1
0
        public void AddToAccessList_ShouldGetNotNull()
        {
            //Arrange
            //Test Initialize
            //Act
            Badge badgeFromDictionary = _repo.GetBadgeById(5001);

            //Assert
            Assert.IsNotNull(badgeFromDictionary);
        }
        public void UpdateBadge()
        {
            Console.WriteLine("What is the badge number you would like to update ?");
            int           BadgeId = int.Parse(Console.ReadLine());
            List <string> doors   = _badgesRepository.GetBadgeById(BadgeId);

            Console.WriteLine("What would you like to do?\n" +
                              "1.Remove a door?\n" +
                              "2.Add a door?");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                DeleteDoor(BadgeId, doors);
                break;

            case "2":
                AddDoor(BadgeId, doors);
                break;
            }
            Console.Clear();
        }