Пример #1
0
        public void DeleteBasketItem()
        {
            var response = basketItemService.DeleteBasketItem(new BasketItemDeleted()
            {
                BasketItemID = 121
            });

            Assert.AreEqual(response.Type, Common.ServiceResponseTypes.Success);
        }
Пример #2
0
        public void DeleteBasketItem()
        {
            var basket = basketService.GetBaskets(new Models.Requests.BasketRequest()
            {
                UserIds = new List <int> {
                    1
                }
            }).Result.LastOrDefault();

            var response = basketItemService.DeleteBasketItem(new BasketItemDeleted()
            {
                BasketItemID = basket.BasketItems[0].BasketItemID
            });

            Assert.AreEqual(response.Type, Common.ServiceResponseTypes.Success);
        }