public void RemoveMultipleMealsTest() { string name = "飲料"; _mealControl.RemoveMultipleMeals(name); Assert.AreEqual(20, _mealControl.GetMealListLength()); }
// remove category by name public void RemoveCategory(string name) { //Category category = GetCategoryByName(CATEGORY_NAME); //RemoveMultipleOrder(name); _mealControl.RemoveMultipleMeals(name); foreach (Category item in _categoryControl.GetCategoryList()) { if (item.Name.Equals(name)) { _categoryControl.RemoveCategory(item); break; } } }