public void Arrange() { List <string> list1 = new List <string>(); // Need to create a lis list1.Add("Room 4"); var badge1 = new Badges(1, list1); _repo = new BadgesRepo(); _repo.AddToAccessList(badge1); }
public void Arrange() { _repo = new BadgesRepo(); List <string> doors1 = new List <string>(); doors1.Add("A1"); doors1.Add("A2"); doors1.Add("A3"); _content = new Badge(5001, doors1); _repo.AddToAccessList(_content); }
public void AddToAccessList_SholdGetNull() { //Arrange Badges badge = new Badges(); badge.BadgeID = 2; badge.DoorAccess.Add("Room 9"); // Act BadgesRepo repo = new BadgesRepo(); repo.AddToAccessList(badge); bool updateResult = repo.GetBadgeByID(1); // Assert Assert.IsTrue(updateResult); }