Exemple #1
0
 public void addMenuProduct()
 {
     decimal expectedMenuProductPrice = 6;
     Product p = new Product { Description = "Latte" };
     Menu m = new Menu();
     MenuProduct mp =  m.AddMenuProduct(p, expectedMenuProductPrice);
     Assert.AreEqual(expectedMenuProductPrice, mp.Price);
 }
Exemple #2
0
 public Menu AddMenu()
 {
     var menu = new Menu();
     this.Menus.Add(menu);
     return menu;
 }