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;
        }
Example #2
0
 public RecipeController(IRecipeService recipeService, IRecipeCategoryService recipeCategoryService)
 {
     _recipeService         = recipeService;
     _recipeCategoryService = recipeCategoryService;
 }
Example #3
0
 public RecipeCategoriesController(ICommandDispatcher commandDispatcher, IRecipeCategoryService categoryService)
     : base(commandDispatcher)
 {
     _categoryService = categoryService;
 }
 public RecipeCategoryServiceTests()
 {
     _repository = Substitute.For <IRepository <RecipeCategory> >();
     _service    = new RecipeCategoryService(_repository);
 }
Example #5
0
 public RecipeCategoriesController(IRecipeCategoryService RecipeCategoryService)
 {
     _recipeCategoryService = RecipeCategoryService;
 }