public void AddDoor(int badgeId)
        {
            Console.WriteLine("Enter a door to add:");
            string door = Console.ReadLine();

            _badgeRepo.GrantAccess(badgeId, door);

            Console.WriteLine("Access has been added!");
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public void GrantAccess_ShouldReturnTrue()
        {
            bool test = _repo.GrantAccess(4, "A1");

            Assert.IsTrue(test);
        }