public RecipeIngredientController(IRecipeService recipeService, IRecipeIngredientService recipeCategoryService, IIngredientService ingredientService, IMeasurementTypeService measurementTypeService, IPreparationTypeService preparationTypeService)
 {
     _recipeService           = recipeService;
     _ingredientService       = ingredientService;
     _recipeIngredientService = recipeCategoryService;
     _measurementTypeService  = measurementTypeService;
     _preparationTypeService  = preparationTypeService;
 }
        public RecipesController(IRecipeService recipeService,
                                 ICuisineService cuisineService,
                                 IDificultyService difficultyService,
                                 IRecipeIngredientService recipeIngredientService,
                                 IRecipeCategoryService recipeCategoryService,
                                 IRecipeOccasionService recipeOccasionService,
                                 IRecipeStepService recipeStepService,
                                 IUserRatingService userRatingService,
                                 ICommentService commentService

                                 )
        {
            _recipeService           = recipeService;
            _cuisineService          = cuisineService;
            _difficultyService       = difficultyService;
            _recipeCategoryService   = recipeCategoryService;
            _recipeIngredientService = recipeIngredientService;
            _recipeOccasionService   = recipeOccasionService;

            _recipeStepService = recipeStepService;
            _userRatingService = userRatingService;
            _commentService    = commentService;
        }
Exemple #3
0
 public RecipeService(RecipeDA recipeDA, IRecipeIngredientService recipeIngredientService, IRecipeInstructionService recipeInstructionService)
 {
     this.recipeDA = recipeDA;
     this.recipeIngredientService  = recipeIngredientService;
     this.recipeInstructionService = recipeInstructionService;
 }
Exemple #4
0
 public CreateRecipeCommandHandler(RecipeBookDbContext context, IRecipeValidatorService recipeValidatorService, IRecipeIngredientService recipeIngredientService) : base(context)
 {
     _recipeValidatorService  = recipeValidatorService;
     _recipeIngredientService = recipeIngredientService;
 }
Exemple #5
0
 public RecipeIngredientsController()
 {
     _recipeIngredientService = new RecipeIngredientService(db);
 }