public PurchaseController(IngredientProcessor ingredientProcessor, RecipeProcessor recipeProcessor,
                           SessionManager <Purchase> sessionManager)
 {
     this.recipeProcessor     = recipeProcessor;
     this.sessionManager      = sessionManager;
     this.ingredientProcessor = ingredientProcessor;
 }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            SqlDataAccess sqlDataAccess = new SqlDataAccess()
            IngredientProcessor ingredientProcessor = new IngredientProcessor(sqlDataAccess);

        }
 public CompoundModelBuilder(RecipeProcessor recipeProcessor, IngredientProcessor ingredientProcessor,
                             CuisineProcessor cuisineProcessor, CategoryProcessor categoryProcessor)
 {
     this.cuisineProcessor    = cuisineProcessor;
     this.recipeProcessor     = recipeProcessor;
     this.ingredientProcessor = ingredientProcessor;
     this.categoryProcessor   = categoryProcessor;
 }
 public IngredientController(IngredientProcessor ingredientProcessor, CategoryProcessor categoryProcessor,
                             IMapper mapper, SessionManager <ItemInfo> sessionManager, CompoundModelBuilder compoundModelBuilder)
 {
     this.mapper = mapper;
     this.ingredientProcessor  = ingredientProcessor;
     this.categoryProcessor    = categoryProcessor;
     this.sessionManager       = sessionManager;
     this.compoundModelBuilder = compoundModelBuilder;
 }
Exemple #5
0
 public CategorySelectionViewComponent(IngredientProcessor ingredientProcessor)
 {
     this.ingredientProcessor = ingredientProcessor;
 }