Ejemplo n.º 1
0
        public void DisplayDictionary_ShouldReturnNotNull()
        {
            // Act
            Dictionary <int, Badge> dictionaryfromRepo = _repo.DisplayDictionary();

            // Assert
            Assert.IsNotNull(dictionaryfromRepo);
        }
Ejemplo n.º 2
0
        public void DisplayAllBadges()
        {
            Console.Clear();
            Dictionary <int, Badge> badgeDictionary = _badges.DisplayDictionary();

            Console.WriteLine($"Badge #\t\t Door Access\n");
            foreach (var badge in badgeDictionary)
            {
                int   key   = badge.Key;
                Badge value = badge.Value;
                Console.WriteLine($"{key}\t\t{value}");
            }
        }