public void NotDeleteItemByIdFromCartIfNotPresent()
        {
            CartViewModel cut = new CartViewModel();

            bool wasDeleted = cut.DeleteFromCartById(1);

            Assert.False(wasDeleted);
        }
        public void DeleteItemByIdFromCartIfPresent()
        {
            CartViewModel             cut  = new CartViewModel();
            ElectronicDeviceViewModel item = new ElectronicDeviceViewModel();

            item.ID           = 1;
            item.Manufacturer = "Lenovo";
            item.Photo        = "photo.png";
            item.Price        = 2500;

            cut.AddItemToCart(item);
            bool wasDeleted = cut.DeleteFromCartById(1);

            Assert.True(wasDeleted);
        }
 /// <summary>
 /// Usuwanie z koszyka produktu
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public IActionResult DeleteFromCart(int id)
 {
     cart.DeleteFromCartById(id);
     return(View("Index", cart));
 }