コード例 #1
0
        private void UpdateBadgeAccess()
        {
            Console.Clear();
            Console.WriteLine("\n" + "Enter the ID of the badge you would like to update: ");
            string iDNumberString = Console.ReadLine();
            int    userInput      = int.Parse(iDNumberString);

            Console.WriteLine("Current badge data: " + _badgesRepo.SearchBadgeID(userInput) + ".");
            Console.WriteLine("Which door would you like to grant access to?: ");
        }
コード例 #2
0
        public void CreateNewBadge_NotNull()
        {
            Badges badges = new Badges();

            badges.BadgeID = 4;
            BadgesRepo repo = new BadgesRepo();

            repo.CreateNewBadge(_badges.BadgeID, badges);
            Badges badgesFromDictionary = repo.SearchBadgeID(4);

            Assert.IsNotNull(badgesFromDictionary);
        }