public void AddProductToCoffeeMachine()
        {
            CoffeeMachine coffeeMachine = new CoffeeMachine();
            Product product = new Product("Coffee");
            coffeeMachine.AddProduct(product);

            Assert.AreEqual(coffeeMachine.GetProductById(product.ProductId), product, "Products must be equal");
        }
Esempio n. 2
0
 public void AddProduct(Product product)
 {
     this.products.Add(product);
 }