public FoodCategoriesController(IFoodCategoriesService foodCategoriesService, IMappingService mappingService) { Guard.WhenArgument(foodCategoriesService, "foodCategoriesService").IsNull().Throw(); this.foodCategoriesService = foodCategoriesService; Guard.WhenArgument(mappingService, "mappingService").IsNull().Throw(); this.mappingService = mappingService; }
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 IngredientsController(IIngredientsService ingredientsService, IFoodCategoriesService foodCategoriesService, IRecipesService recipesService, IMappingService mappingService) { Guard.WhenArgument(ingredientsService, "ingredientsService").IsNull().Throw(); this.ingredientsService = ingredientsService; Guard.WhenArgument(foodCategoriesService, "foodCategoriesService").IsNull().Throw(); this.foodCategoriesService = foodCategoriesService; Guard.WhenArgument(recipesService, "recipesService").IsNull().Throw(); this.recipesService = recipesService; Guard.WhenArgument(mappingService, "mappingService").IsNull().Throw(); this.mappingService = mappingService; }
public CategoriesController(IFoodCategoriesService foodCategories) { this.foodCategories = foodCategories; }