public ResultController(ICocktailRepository cocktailRepo, ICocktailIngredientRepository ciRepo, IIngredientRepository ingredientRepo) { _cocktailRepo = cocktailRepo; _ingredientRepo = ingredientRepo; _ciRepo = ciRepo; }
public AdminController(ICocktailRepository cocktailRepo, ICocktailIngredientRepository ciRepo, IIngredientRepository ingredientRepo, IRecipeRespository recipeRepo) { _cocktailRepo = cocktailRepo; _ingredientRepo = ingredientRepo; _ciRepo = ciRepo; _recipeRepo = recipeRepo; }
public static ICocktailIngredientRepository GetCocktailIngredientRepo() { if (_cocktailIngredientRepo == null) { if (GetMode() != "Mock") { _cocktailIngredientRepo = new CocktailIngredientSqlRepository(); } } return(_cocktailIngredientRepo); }
public static ICocktailIngredientRepository GetCocktailIngredientRepo() { if (_cocktailIngredientRepo == null) { if (GetMode() != "Mock") { _cocktailIngredientRepo = new CocktailIngredientSqlRepository(); } } return _cocktailIngredientRepo; }