public void ReturnsLineItemForEachProduct(string productsString, int expectedCount)
        {
            var products = ProductHelper.GetProducts(productsString);
            var offer    = new NoOffer();
            var result   = offer.Process(products);

            Assert.Equal(expectedCount, result.lineItems.Count());
        }
        public void ResultMatchesProduct()
        {
            var offer  = new NoOffer();
            var milk   = Product.Milk;
            var result = offer.Process(new[] { milk }).lineItems.First();

            Assert.Equal(milk.Name, result.Name);
            Assert.Equal(milk.Price, result.Price);
            Assert.Contains(milk, result.Items);
        }