public void ChangeItemQuantity_should_change_item_quantity_to_store()
        {
            var basket = new Basket(_testCustomerId, new List <Item>());

            _mockBasketStore.Setup(x => x.FindByCustomerId(_testCustomerId))
            .Returns(basket);
            _mockBasketStore.Setup(x => x.ChangeItemQuantity(_testCustomerId, "item1", 5))
            .Verifiable();

            var result = _sut.ChangeItemQuantity(_testCustomerId, "item1", 5);

            _mockBasketStore.Verify(x => x.FindByCustomerId(_testCustomerId), Times.Once);
            _mockBasketStore.Verify(x => x.ChangeItemQuantity(_testCustomerId, "item1", 5), Times.Once);
        }
        public IActionResult ChangeItemQuantity(string customerId, string itemId, [FromBody] ChangeQuantityRequest request)
        {
            var basket = _basketService.ChangeItemQuantity(customerId, itemId, request.NewQuantity);

            return(new OkObjectResult(basket));
        }