public Meal[] AddDomainMealsToDay(IMealService <Meal> mealService) { Meal[] mealList = new Meal[6]; var meal = new Meal("Breakfast", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[0] = meal; meal = new Meal("Second Breakfast", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[1] = meal; meal = new Meal("Lunch", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[2] = meal; meal = new Meal("Midday Meal", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[3] = meal; meal = new Meal("Snack", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[4] = meal; meal = new Meal("Dinner", mealService.GetLastId() + 1); mealService.Items.Add(meal); mealList[5] = meal; return(mealList); }