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