public UpdateRecipeCommandHandler(IRecipeRepository recipeRepository,
                                   IEnumerable <ICommandValidator <UpdateRecipeCommand> > validators,
                                   IEventPublisher eventPublisher, IRecipeIngredientFactory recipeIngredientFactory)
 {
     _recipeRepository        = recipeRepository;
     _validators              = validators;
     _eventPublisher          = eventPublisher;
     _recipeIngredientFactory = recipeIngredientFactory;
 }
Esempio n. 2
0
 public CreateRecipeCommandHandler(
     IEnumerable <ICommandValidator <CreateRecipeCommand> > validators,
     IEventPublisher eventPublisher,
     IRecipeFactory recipeFactory,
     IRecipeIngredientFactory recipeIngredientFactory,
     IImageUploader imageUploader)
 {
     _validators              = validators;
     _eventPublisher          = eventPublisher;
     _recipeFactory           = recipeFactory;
     _recipeIngredientFactory = recipeIngredientFactory;
     _imageUploader           = imageUploader;
 }