private void UpdateBadgeAccess() { Console.Clear(); Console.WriteLine("\n" + "Enter the ID of the badge you would like to update: "); string iDNumberString = Console.ReadLine(); int userInput = int.Parse(iDNumberString); Console.WriteLine("Current badge data: " + _badgesRepo.SearchBadgeID(userInput) + "."); Console.WriteLine("Which door would you like to grant access to?: "); }
public void CreateNewBadge_NotNull() { Badges badges = new Badges(); badges.BadgeID = 4; BadgesRepo repo = new BadgesRepo(); repo.CreateNewBadge(_badges.BadgeID, badges); Badges badgesFromDictionary = repo.SearchBadgeID(4); Assert.IsNotNull(badgesFromDictionary); }