public void GivenEmptyCart_WhenUserAddsXAndThenYItemsOfSameProduct_ThenCartShowsCorrectTotalPrice()
        {
            // Arrange
            var product = new Product("Dove Soap", 39.99);
            IProductAddingShoppingCart cart = new RunningProductsCountShoppingCart();

            // Act
            cart.AddProduct(product, 5);
            cart.AddProduct(product, 3);

            // Assert
            Assert.That(cart.GetTotalPrice(), Is.EqualTo(319.92));
        }
        public void GivenEmptyCart_WhenUserAddsXAndThenYItemsOfSameProduct_ThenCartShowsCorrectItemCountForThatProduct()
        {
            // Arrange
            var product = new Product("Dove Soap", 39.99);
            IProductAddingShoppingCart cart = new RunningProductsCountShoppingCart();

            // Act
            cart.AddProduct(product, 5);
            cart.AddProduct(product, 3);

            // Assert
            Assert.That(cart.Products.Count(p => p.Name == "Dove Soap"), Is.EqualTo(8));
        }