public void ProductReview_1_Should_Be_Updated() { using var ctx = new AdventureWorks2016DbContext(); var productReview = ctx.ProductReview.Find(1); productReview.Comments = "Updated"; ctx.SaveChanges(); }
public void ProductReview_1_Should_Be_Removed() { using var ctx = new AdventureWorks2016DbContext(); var productReview = ctx.ProductReview.Find(1); ctx.ProductReview.Remove(productReview); ctx.SaveChanges(); }