Esempio n. 1
0
        public async Task ChangeProductQuantity(ChangeBasketProductQuantityDto changeProductQuantityDto)
        {
            changeProductQuantityDto.UserId = userId;

            var changeProductQuantityUrl = $"{baseUrl}change/quantity";

            await customHttpClient.PostAsync(changeProductQuantityUrl, changeProductQuantityDto);
        }
 public ChangeProductQuantityTest()
 {
     basketService    = new Mock <IBasketService>();
     basketController = new BasketController(basketService.Object);
     dto = new ChangeBasketProductQuantityDto();
 }
Esempio n. 3
0
        public async Task <IActionResult> ChangeProductQuantity(ChangeBasketProductQuantityDto changeProductQuantityDto)
        {
            await basketService.ChangeProductQuantity(changeProductQuantityDto);

            return(RedirectToAction("Index"));
        }