コード例 #1
0
        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;
        }
コード例 #2
0
        public MockRecipeClassification(Recipe recipe, RecipeTag tag)
        {
            Recipe = recipe;

             IsBreakfast = tag == RecipeTag.Breakfast;
             IsLunch = tag == RecipeTag.Lunch;
             IsDinner = tag == RecipeTag.Dinner;
             IsDessert = tag == RecipeTag.Dessert;
        }