Example #1
0
 public GroceryListController(IIngredientData ingredientData)
 {
     _ingredientData = ingredientData;
     GroceryList     = new GroceryListViewModel
     {
         IngredientList = new List <Ingredient>()
     };
 }
Example #2
0
 public CreateModel(IRecipeData recipeData, IHtmlHelper htmlHelper,
                    IIngredientData ingredientData,
                    UserManager <ApplicationUser> userManager,
                    IImageData imageData)
 {
     this.recipeData     = recipeData;
     this.htmlHelper     = htmlHelper;
     this.ingredientData = ingredientData;
     this.imageData      = imageData;
     this.userManager    = userManager;
 }
Example #3
0
 public RecipesController(IHtmlHelper htmlHelper,
                          IRecipeData recipeData,
                          IRecipeComponentData recipeComponentData,
                          IIngredientData ingredientData,
                          IUserRecipeData userRecipeData,
                          IWebHostEnvironment webHostEnvironment)
 {
     _htmlHelper          = htmlHelper;
     _recipeData          = recipeData;
     _recipeComponentData = recipeComponentData;
     _ingredientData      = ingredientData;
     _userRecipeData      = userRecipeData;
     _webHostEnvironment  = webHostEnvironment;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Ingredient"/> class.
 /// </summary>
 public Ingredient()
 {
     _ingredient = new IngredientDb();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Ingredient"/> class.
 /// </summary>
 /// <param name="ingredient">The ingredient.</param>
 internal Ingredient(IIngredient ingredient)
 {
     _ingredient = ingredient as IIngredientData;
 }
Example #6
0
 public EditModel(IIngredientData ingredientData, IRecipeData recipeData)
 {
     this.ingredientData = ingredientData;
     this.recipeData     = recipeData;
 }
Example #7
0
 /// <summary>
 /// Ingredient logic constructor for use with ioc
 /// </summary>
 /// <param name="ingredientData"></param>
 public IngredientLogic(IngredientData ingredientData)
 {
     _ingredientData = ingredientData;
 }
Example #8
0
 /// <summary>
 /// Ingredient logic constructor
 /// </summary>
 public IngredientLogic()
 {
     _ingredientData = new IngredientData();
 }
Example #9
0
 public IngredientsController(IIngredientData ingredientData)
 {
     _ingredientData = ingredientData;
 }
Example #10
0
 public DeleteModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }
Example #11
0
 public ListModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }
 public IngredientsController(IMapper mapper, IIngredientData ingredientData, LinkGenerator linkGenerator)
 {
     _mapper         = mapper;
     _ingredientData = ingredientData;
     _linkGenerator  = linkGenerator;
 }
Example #13
0
 public DetailModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }