コード例 #1
0
        public void RemoveItemTest()
        {
            var cartId    = cartItem.CartId;
            var productId = cartItem.Product.Id;

            try
            {
                controller.RemoveItem(cartId, productId);
            }
            catch (Exception e)
            {
                Assert.Fail("Expected no exception but got" + e.Message);
            }
        }