public void Calculate_Cart_Total() { // Arrange Product p1 = new Product { ProductId = 1, Name = "P1", Price = 100m }; Product p2 = new Product { ProductId = 2, Name = "P2", Price = 50m }; CartModel cart = new CartModel(); cart.AddItem(p1, 1); cart.AddItem(p2, 1); cart.AddItem(p1, 10); // Act decimal total = cart.ComputeTotalValue(); // Assert Assert.Equal(1150, total); }