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));
        }
Пример #2
0
        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));
        }
Пример #3
0
 public RecipesController(RecipesDomain domain)
 {
     _recipesDomain = domain;
 }