public RecipeRepositoryAdapter(IRecipeMapper recipeMapper,
                                IRecipeDataReader recipeDataReader,
                                IRecipeDataWriter recipeDataWriter)
 {
     _recipeMapper     = recipeMapper;
     _recipeDataReader = recipeDataReader;
     _recipeDataWriter = recipeDataWriter;
 }
Beispiel #2
0
 public RecipeController(
     IRecipeMapper mapper,
     IRecipeService service,
     ITypeHandler typeHandler,
     IRepositoryAdvanced <Ingredient> ingredientRepository)
 {
     this.mapper               = mapper;
     this.service              = service;
     this.typeHandler          = typeHandler;
     this.ingredientRepository = ingredientRepository;
 }
Beispiel #3
0
 public RecipeQueries
 (
     ICategoryRepository categoryRepository,
     IRecipeRepository recipeRepository,
     IRecipeMapper recipeMapper
 )
 {
     _categoryRepository = categoryRepository;
     _recipeRepository   = recipeRepository;
     _recipeMapper       = recipeMapper;
 }
Beispiel #4
0
 public RecipesController(
     ICookingProcedureProvider cookingProcedureProvider,
     IIngredientProvider ingredientProvider,
     IIngredientMapper ingredientMapper,
     IRecipeProvider recipeProvider,
     IRecipeMapper recipeMapper,
     IPdfGenerator pdfGenerator,
     IScraper scraper,
     IRecipeParser RecipeParser,
     ISiteSettingsProvider siteSettingsProvider,
     IFileHandler fileHandler
     )
 {
     this.cookingProcedureProvider = cookingProcedureProvider;
     this.ingredientProvider       = ingredientProvider;
     this.ingredientMapper         = ingredientMapper;
     this.recipeProvider           = recipeProvider;
     this.recipeMapper             = recipeMapper;
     this.pdfGenerator             = pdfGenerator;
     this.scraper              = scraper;
     this.RecipeParser         = RecipeParser;
     this.siteSettingsProvider = siteSettingsProvider;
     this.fileHandler          = fileHandler;
 }
Beispiel #5
0
 public RecipeProvider(IRecipeRepository recipeRepository, IRecipeMapper mapper)
 {
     this.recipeRepository = recipeRepository;
     this.mapper           = mapper;
 }