Ejemplo n.º 1
0
 public GroceryListController(IIngredientData ingredientData)
 {
     _ingredientData = ingredientData;
     GroceryList     = new GroceryListViewModel
     {
         IngredientList = new List <Ingredient>()
     };
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Ingredient"/> class.
 /// </summary>
 public Ingredient()
 {
     _ingredient = new IngredientDb();
 }
Ejemplo n.º 5
0
 /// <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;
 }
Ejemplo n.º 6
0
 public EditModel(IIngredientData ingredientData, IRecipeData recipeData)
 {
     this.ingredientData = ingredientData;
     this.recipeData     = recipeData;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Ingredient logic constructor for use with ioc
 /// </summary>
 /// <param name="ingredientData"></param>
 public IngredientLogic(IngredientData ingredientData)
 {
     _ingredientData = ingredientData;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Ingredient logic constructor
 /// </summary>
 public IngredientLogic()
 {
     _ingredientData = new IngredientData();
 }
Ejemplo n.º 9
0
 public IngredientsController(IIngredientData ingredientData)
 {
     _ingredientData = ingredientData;
 }
Ejemplo n.º 10
0
 public DeleteModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }
Ejemplo n.º 11
0
 public ListModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }
Ejemplo n.º 12
0
 public IngredientsController(IMapper mapper, IIngredientData ingredientData, LinkGenerator linkGenerator)
 {
     _mapper         = mapper;
     _ingredientData = ingredientData;
     _linkGenerator  = linkGenerator;
 }
Ejemplo n.º 13
0
 public DetailModel(IIngredientData ingredientData)
 {
     this.ingredientData = ingredientData;
 }