Ejemplo n.º 1
0
        public void AddRoomToBadge_ShouldGetTrue()
        {
            // Arrange
            Badges badge = new Badges();

            badge.BadgeID = 1;
            badge.DoorAccess.Add("Room 9");

            // Act
            BadgesRepo repo = new BadgesRepo();

            repo.AddRoomToBadge(badge);
            bool badgeFromList = repo.GetBadgeByID(1);

            //  Assert
            Assert.AreEqual(badge.DoorAccess, badgeFromList);
        }