コード例 #1
0
 public RecipeIngredientController(IRecipeService recipeService, IRecipeIngredientService recipeCategoryService, IIngredientService ingredientService, IMeasurementTypeService measurementTypeService, IPreparationTypeService preparationTypeService)
 {
     _recipeService           = recipeService;
     _ingredientService       = ingredientService;
     _recipeIngredientService = recipeCategoryService;
     _measurementTypeService  = measurementTypeService;
     _preparationTypeService  = preparationTypeService;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public RecipeService(RecipeDA recipeDA, IRecipeIngredientService recipeIngredientService, IRecipeInstructionService recipeInstructionService)
 {
     this.recipeDA = recipeDA;
     this.recipeIngredientService  = recipeIngredientService;
     this.recipeInstructionService = recipeInstructionService;
 }
コード例 #4
0
 public CreateRecipeCommandHandler(RecipeBookDbContext context, IRecipeValidatorService recipeValidatorService, IRecipeIngredientService recipeIngredientService) : base(context)
 {
     _recipeValidatorService  = recipeValidatorService;
     _recipeIngredientService = recipeIngredientService;
 }
コード例 #5
0
 public RecipeIngredientsController()
 {
     _recipeIngredientService = new RecipeIngredientService(db);
 }