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