public void CanAnCommentBeDeleted() { var maxid = (int)_testRepo.FindAll().Max(m => m.commentid); _testRepo.Remove(maxid); var Comment = _testRepo.FindByID(maxid); var expectedComment = new Comment(); Assert.IsNull(Comment); }
public void Delete(int id) { CommentRepo.Remove(id); _log.LogInformation($"The Comment that was deleted {id.ToString()}"); }