public void FixStateCanInterpretLocalState() { var cart = NewCart.CreateCartFromProductSelection(_theUri, null, 1, 1, 9.99m); cart.CartItems.First().UpdateQuantity(2); _context.Carts.Attach(cart); _context.FixState(); Assert.AreEqual(EntityState.Unchanged, _context.Entry(cart).State); Assert.AreEqual(EntityState.Modified, _context.Entry(cart.CartItems.First()).State); }