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); }
public Menu AddMenu() { var menu = new Menu(); this.Menus.Add(menu); return menu; }