private RecipesController CreateRecipesController(RecipesContext recipesContext) { var databaseActions = new DatabaseActions(recipesContext); var ingredientDomain = new IngredientDomain(databaseActions); var recipesDomain = new RecipesDomain(databaseActions, ingredientDomain); return(new RecipesController(recipesDomain)); }
private RecipesController CreateRecipesController() { var options = _fixture.Options; var recipesContext = new RecipesContext(options); var databaseActions = new DatabaseActions(recipesContext); var ingredientDomain = new IngredientDomain(databaseActions); var recipesDomain = new RecipesDomain(databaseActions, ingredientDomain); return(new RecipesController(recipesDomain)); }
public RecipesController(RecipesDomain domain) { _recipesDomain = domain; }