public MealIngredientService(IMapper mapper, IMealIngredientRepository mealIngredientRepository,
                              IAchievementService achievementService, IActivityService activityService,
                              IUserRepository userRepository)
 {
     _mapper = mapper;
     _mealIngredientRepository = mealIngredientRepository;
     _achievementService       = achievementService;
     _activityService          = activityService;
     _userRepository           = userRepository;
 }
Ejemplo n.º 2
0
 public SearchService(IMealRepository mealRepository, IMealIngredientRepository mealIngredientRepository,
                      IMealIngredientsApiCaller mealIngredientsApi, IUserRepository userRepository, IMapper mapper,
                      IFavouriteRepository favouriteRepository, IFriendRepository friendRepository)
 {
     _mealRepository           = mealRepository;
     _favouritesRepository     = favouriteRepository;
     _friendRepository         = friendRepository;
     _mealIngredientRepository = mealIngredientRepository;
     _mealIngredientsApi       = mealIngredientsApi;
     _userRepository           = userRepository;
     _mapper = mapper;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 public AdminService(
     IMealRepository mealRepository,
     IMealIngredientRepository mealIngredientRepository,
     IActivityRepository activityRepository,
     IUserService userService,
     IImageService imageService,
     IMapper mapper,
     ILogger <FriendService> logger)
 {
     _mealRepository           = mealRepository;
     _mealIngredientRepository = mealIngredientRepository;
     _activityRepository       = activityRepository;
     _userService  = userService;
     _imageService = imageService;
     _mapper       = mapper;
     _logger       = logger;
 }
Ejemplo n.º 6
0
 public DietControllerTest()
 {
     MapperConfig.ConfigureMapper();
     _dietRepository = new FakeDietRepository();
     _commentRepository = new FakeCommentRepository();
     _userRepository = new FakeUserRepository();
     _dietCategoryRepository = new FakeDietCategoryRepository();
     _dietMealRepository = new FakeDietMealRepository();
     _dietIngredientRepository = new FakeDietIngredientRepository();
     _quantityTypeRepository = new FakeQuantityTypeRepository();
     _userDietRepository = new FakeUserDietRepository();
     _ingredientRepository = new FakeIngredientRepository();
     _mealRepository = new FakeMealRepository();
     _ingredientQuantityRepository = new FakeIngredientQuantityRepository();
     _mealIngredientRepository = new FakeMealIngredientRepository();
     _tracer = new Tracer();
     _controller = new DietController(_dietRepository, _commentRepository, _userRepository, _dietCategoryRepository, _dietMealRepository, _dietIngredientRepository, _quantityTypeRepository, _userDietRepository, _ingredientQuantityRepository, _tracer);
 }
Ejemplo n.º 7
0
 public AchievementService(
     IOptions <AchievementsConfig> options,
     IUserAchievementRepository userAchievementRepository,
     IAchievementRepository achievementRepository,
     IMealRepository mealRepository,
     IFavouriteRepository favouriteRepository,
     IMealIngredientRepository mealIngredientRepository,
     IFriendRepository friendRepository,
     IMealScheduleRepository mealScheduleRepository,
     IActivityService activityService,
     IMapper mapper)
 {
     achievementsConfig         = options.Value;
     _userAchievementRepository = userAchievementRepository;
     _achievementRepository     = achievementRepository;
     _mealRepository            = mealRepository;
     _friendRepository          = friendRepository;
     _mealScheduleRepository    = mealScheduleRepository;
     _activityService           = activityService;
     _mapper = mapper;
 }
Ejemplo n.º 8
0
 public MealService(IMealRepository mealRepository, IIngredientRepository ingredientRepository, IMealIngredientRepository mealIngredientRepository)
 {
     _mealRepository           = mealRepository;
     _ingredientRepository     = ingredientRepository;
     _mealIngredientRepository = mealIngredientRepository;
 }
 public MealScheduleRepository(IMealIngredientRepository mealIngredientRepository)
 {
     _mealIngredientRepository = mealIngredientRepository;
 }
 public MealIngredientController(IMealIngredientRepository mealingredientRepository, IIngredientRepository ingredientRepository, IMealRepository mealRepository)
 {
     _mealingredientRepository = mealingredientRepository;
     _ingredientRepository     = ingredientRepository;
     _mealRepository           = mealRepository;
 }