public IngredientsService(IHomeMadeFoodData data, IFoodCategoriesService foodCategoriesService)
        {
            Guard.WhenArgument(data, "data").IsNull().Throw();
            this.data = data;

            Guard.WhenArgument(foodCategoriesService, "foodCategoriesService").IsNull().Throw();
            this.foodCategoriesService = foodCategoriesService;
        }
        public RecipesService(IHomeMadeFoodData data, IIngredientsService ingredientsService)
        {
            Guard.WhenArgument(data, "data").IsNull().Throw();
            this.data = data;

            Guard.WhenArgument(ingredientsService, "ingredientsService").IsNull().Throw();
            this.ingredientsService = ingredientsService;
        }
Beispiel #3
0
        public DailyMenuService(IHomeMadeFoodData data, IRecipesService recipeService)
        {
            Guard.WhenArgument(data, "data").IsNull().Throw();
            this.data = data;

            Guard.WhenArgument(recipeService, "recipeService").IsNull().Throw();
            this.recipeService = recipeService;
        }
Beispiel #4
0
 public UsersService(IHomeMadeFoodData data)
 {
     Guard.WhenArgument(data, "data").IsNull().Throw();
     this.data = data;
 }