public void ViewTest() { var x = _repo.GetBadgesDictionary(); Assert.IsNotNull(x); Assert.IsTrue(x.Count > 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"); } }