public void GetCartValueAsync_Should_Return_CartValue_370_For_Product_5A_5B_1C() { List <Cart> products = new List <Cart> { new Cart { ProductId = 1, ProductName = "A", Quantity = 5 }, new Cart { ProductId = 2, ProductName = "B", Quantity = 5 }, new Cart { ProductId = 3, ProductName = "C", Quantity = 1 } }; CartController cartController = new CartController(); var actualPrice = cartController.CartValueAsync(products); Assert.AreEqual(370, actualPrice.Result); }