예제 #1
0
        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");
        }
예제 #2
0
 public void AddProduct(Product product)
 {
     this.products.Add(product);
 }