public void RecipeCreateCommandAndValidator() { _recipeCreateCommand = new RecipeCreateCommand(); _recipeCreateValidator = new RecipeCreateValidator(); }
public void Post([FromBody] RecipeCreateCommand command) { var recipeCreateHandler = new RecipeCreateHandler(); recipeCreateHandler.Execute(command); }