public void AddContentTest() { int expected = 3; int actual = _badgeRepo.ViewAllBadges().Count; Assert.AreEqual(expected, actual); }
private void ViewAllBadges() { Console.Clear(); Dictionary <int, List <string> > dictionary = _badgeRepo.ViewAllBadges(); foreach (KeyValuePair <int, List <string> > kvp in dictionary) { int displayBadgeKey = kvp.Key; foreach (string door in kvp.Value) { string displayDoor = door; Console.WriteLine("Badge ID: Room Access:"); Console.WriteLine($"{displayBadgeKey,-7} \t\t{displayDoor,-5}\n" + $""); } } }