Esempio n. 1
0
 public NutritionsController(
     INutritionsService nutritionsService,
     IIngredientsService ingredientsService)
 {
     this.nutritionsService  = nutritionsService;
     this.ingredientsService = ingredientsService;
 }
Esempio n. 2
0
 public RecipesService(
     IDeletableEntityRepository <Recipe> recipesRepository,
     IDeletableEntityRepository <Ingredient> ingredientRepository,
     IDeletableEntityRepository <Category> categoryRepository,
     IDeletableEntityRepository <RecipeImage> recipeImageRepository,
     IDeletableEntityRepository <CategoryRecipe> categoryRecipesRepository,
     IDeletableEntityRepository <RecipeIngredient> ingredientRecipeRepository,
     IDeletableEntityRepository <UserRecipe> userRecipeRepository,
     IDeletableEntityRepository <Nutrition> nutritionRepository,
     IDeletableEntityRepository <CookingVessel> cookingVesselRepository,
     IDeletableEntityRepository <ApplicationUser> userRepository,
     INutritionsService nutritionsService)
 {
     this.recipesRepository          = recipesRepository;
     this.ingredientRepository       = ingredientRepository;
     this.categoryRepository         = categoryRepository;
     this.recipeImageRepository      = recipeImageRepository;
     this.categoryRecipesRepository  = categoryRecipesRepository;
     this.ingredientRecipeRepository = ingredientRecipeRepository;
     this.userRecipeRepository       = userRecipeRepository;
     this.nutritionRepository        = nutritionRepository;
     this.cookingVesselRepository    = cookingVesselRepository;
     this.userRepository             = userRepository;
     this.nutritionsService          = nutritionsService;
 }
Esempio n. 3
0
 public IngredientsService(
     IDeletableEntityRepository <Ingredient> ingredientRepository,
     IDeletableEntityRepository <Nutrition> nutritionsRepository,
     IDeletableEntityRepository <Recipe> recipesRepository,
     INutritionsService nutritionsService)
 {
     this.ingredientRepository = ingredientRepository;
     this.nutritionsRepository = nutritionsRepository;
     this.recipesRepository    = recipesRepository;
     this.nutritionsService    = nutritionsService;
 }