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