public MealController(IMealRepository mealRepository, IIngredientRepository ingredientRepository, IQuantityTypeRepository quantityTypeRepository, IIngredientCategoryRepository ingredientCategoryRepository, IMealIngredientRepository mealIngredientRepository, IMealCategoryRepository categoryRepository, IRecipeRepository recipeRepository, IUserRepository userRepository, IAuthorRepository authorRepository, IIngredientQuantityRepository ingredientQuantityRepository)
 {
     _mealRepository = mealRepository;
     _ingredientRepository = ingredientRepository;
     _quantityTypeRepository = quantityTypeRepository;
     _ingredientCategoryRepository = ingredientCategoryRepository;
     _mealIngredientRepository = mealIngredientRepository;
     _categoryRepository = categoryRepository;
     _recipeRepository = recipeRepository;
     _userRepository = userRepository;
     _authorRepository = authorRepository;
     _ingredientQuantityRepository = ingredientQuantityRepository;
 }
 public MealControllerTest()
 {
     MapperConfig.ConfigureMapper();
     _mealRepository = new FakeMealRepository();
     _ingredientRepository = new FakeIngredientRepository();
     _quantityTypeRepository = new FakeQuantityTypeRepository();
     _ingredientCategoryRepository = new FakeIngredientCategoryRepository();
     _mealIngredientRepository = new FakeMealIngredientRepository();
     _mealCategoryRepository = new FakeMealCategoryRepository();
     _recipeRespository = new FakeRecipeRepository();
     _userRepository =  new FakeUserRepository();
     _authorRepository = new FakeAuthorRepository();
     _ingredientQuantityRepository = new FakeIngredientQuantityRepository();
     _controller = new MealController(_mealRepository, _ingredientRepository, _quantityTypeRepository, _ingredientCategoryRepository, _mealIngredientRepository, _mealCategoryRepository, _recipeRespository, _userRepository, _authorRepository, _ingredientQuantityRepository);
 }
 public MealCategoryController(IMealCategoryRepository mealCategoryRepository)
 {
     _mealCategoryRepository = mealCategoryRepository;
 }
示例#4
0
 public MealCategoryService(IMealCategoryRepository repo, IValidation <MealCategory> validation) : base(validation, repo)
 {
     this.repo = repo;
 }
 public MealCategoriesController(IMealCategoryRepository mealCategory, IMapper mapper)
 {
     _mealCategory = mealCategory;
     _mapper       = mapper;
 }