public void RemoveTest() { _badgeRepo.DeleteBadge(12345, new List <string> { "A7" }); bool wasDeleted = true; Assert.IsTrue(wasDeleted); }
public void DeleteBadge_ShouldReturnTrue() //Delete { //Arrange Badge badge = new Badge(001, new List <string> { "A1", "A2" }); Badge_Repo repo = new Badge_Repo(); repo.AddBadge(badge); int badgeID = 001; //Act Badge oldBadge = repo.GetABadgeByID(badgeID); bool removeResult = repo.DeleteBadge(oldBadge); //Assert Assert.IsTrue(removeResult); }