Exemple #1
0
        public void ProductReview_1_Should_Be_Updated()
        {
            using var ctx = new AdventureWorks2016DbContext();
            var productReview = ctx.ProductReview.Find(1);

            productReview.Comments = "Updated";
            ctx.SaveChanges();
        }
Exemple #2
0
        public void ProductReview_1_Should_Be_Removed()
        {
            using var ctx = new AdventureWorks2016DbContext();
            var productReview = ctx.ProductReview.Find(1);

            ctx.ProductReview.Remove(productReview);
            ctx.SaveChanges();
        }