public IEnumerator PublishRecipeWithoutSteps() { var data = new TestData(); var err = "At least one step must be provided."; data.Name = TEST_RECIPE_NAME; data.Calories = TEST_RECIPE_CALORIES; data.Minutes = TEST_RECIPE_MINUTES; data.IngredientsList = TEST_RECIPE_INGREDIENTS.ToList(); data.ErrorCode = 404; data.ErrorMsg = err; yield return(RunPublishRecipeTest(data)); }
public IEnumerator PublishRecipeWithValidInputs() { var data = new TestData(); data.Name = TEST_RECIPE_NAME; data.Calories = TEST_RECIPE_CALORIES; data.Minutes = TEST_RECIPE_MINUTES; data.IngredientsList = TEST_RECIPE_INGREDIENTS.ToList(); data.Directions = TEST_RECIPE_DIRECTIONS.ToList(); data.Tags = TEST_RECIPE_TAGS.ToList(); data.NotificationText = "Recipe Uploaded"; yield return(RunPublishRecipeTest(data)); }