public void AddBadgeToDictionaryTest()
        {
            _repo          = new EmployeeBadgeRepository();
            _employeeBadge = new EmployeeBadge();

            _repo.AddBadgeToDictionary(_employeeBadge);
            int expected = 1;
            int actual   = _repo.GetDictionary().Count;

            Assert.AreEqual(actual, expected);
        }
Exemple #2
0
        private void ViewAllBadges()
        {
            Dictionary <int, List <string> > allBadges = _repo.GetDictionary();

            foreach (KeyValuePair <int, List <string> > badgeID in allBadges)
            {
                Console.WriteLine($"BadgeID Number: {badgeID.Key}");
                foreach (string door in badgeID.Value)
                {
                    Console.WriteLine(door);
                }
            }
            Console.WriteLine("Press any key to return to the Main Menu...");
            Console.ReadLine();
            Console.Clear();
        }