Exemplo n.º 1
0
 public RecipeService(
     IDeletableEntityRepository <Recipe> recipeRepository,
     ICategoryService categoryService,
     ILifestyleService lifestyleService,
     IRecipeLifestyleService recipeLifestyleService,
     IUserService userService,
     IShoppingListService shoppingListService,
     IUserShoppingListService userShoppingListService,
     INutritionalValueService nutritionalValueService,
     IAllergenService allergenService,
     IRecipeAllergenService recipeAllergenService,
     IUserFavoriteRecipeService userFavoriteRecipeService,
     IUserCookedRecipeService userCookedRecipeService,
     IUserAllergenService userAllergenService,
     IStringFormatService stringFormatService,
     IEnumParseService enumParseService)
 {
     this.recipeRepository          = recipeRepository;
     this.categoryService           = categoryService;
     this.lifestyleService          = lifestyleService;
     this.recipeLifestyleService    = recipeLifestyleService;
     this.userService               = userService;
     this.shoppingListService       = shoppingListService;
     this.userShoppingListService   = userShoppingListService;
     this.nutritionalValueService   = nutritionalValueService;
     this.allergenService           = allergenService;
     this.recipeAllergenService     = recipeAllergenService;
     this.userFavoriteRecipeService = userFavoriteRecipeService;
     this.userCookedRecipeService   = userCookedRecipeService;
     this.userAllergenService       = userAllergenService;
     this.stringFormatService       = stringFormatService;
     this.enumParseService          = enumParseService;
 }
 public ShoppingListsController(
     IShoppingListService shoppingListService,
     IRecipeService recipeService,
     IUserService userService,
     IUserShoppingListService userShoppingListService,
     IStringFormatService stringFormatService)
 {
     this.shoppingListService     = shoppingListService;
     this.recipeService           = recipeService;
     this.userService             = userService;
     this.userShoppingListService = userShoppingListService;
     this.stringFormatService     = stringFormatService;
 }