public void Put_Cart_ShouldReturnStatusCode()
        {
            var controller = new CartsController(new TestCartContext());

            var item = GetDemoCart();

            var result = controller.PutCart(item.CartId, item) as StatusCodeResult;
            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(StatusCodeResult));
            Assert.AreEqual(HttpStatusCode.NoContent, result.StatusCode);
        }
        public void Put_Cart_Should_Fail_When_DifferentID()
        {
            var controller = new CartsController(new TestCartContext());

            var badresult = controller.PutCart(999, GetDemoCart());
            Assert.IsInstanceOfType(badresult, typeof(BadRequestResult));
        }