public RecipeClassification(Recipe recipe, RecipeTag tag) { this.Recipe = recipe; this.IsBreakfast = tag == RecipeTag.Breakfast; this.IsLunch = tag == RecipeTag.Lunch; this.IsDinner = tag == RecipeTag.Dinner; this.IsDessert = tag == RecipeTag.Dessert; }
public MockRecipeClassification(Recipe recipe, RecipeTag tag) { Recipe = recipe; IsBreakfast = tag == RecipeTag.Breakfast; IsLunch = tag == RecipeTag.Lunch; IsDinner = tag == RecipeTag.Dinner; IsDessert = tag == RecipeTag.Dessert; }