public void AddToBasketTest(string[] productIds, int quantity, int expectedBasketItemCount, decimal expectedBasketTotalPrice) { Basket actual = null; foreach (string productId in productIds) { Product product = _products.Find(x => x.ProductId == productId); actual = _checkoutService.AddToBasket(product, quantity); } Assert.AreEqual(expectedBasketTotalPrice, actual.BasketTotalPrice); Assert.AreEqual(expectedBasketItemCount, actual.Items.Count); }