Esempio n. 1
0
        public void ViewTest()
        {
            var x = _repo.GetBadgesDictionary();

            Assert.IsNotNull(x);
            Assert.IsTrue(x.Count > 0);
        }
Esempio n. 2
0
        private void ViewAllBadges()
        {
            Console.Clear();
            Dictionary <int, Badges> BadgeDictionary = _badgesRepo.GetBadgesDictionary();

            foreach (KeyValuePair <int, List <string> > badge in _dictionary)
            {
                Console.WriteLine($"\tBadge ID\t" + $"\tDoor Access\t");
                Console.Write($"\n\t{badge.Key}\t\t");

                string listOfDoors = String.Join(',', badge.Value);
                Console.Write($"\t{listOfDoors}");

                Console.WriteLine("\n");
            }
        }