public MealCalculatorTest() { 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(); }
public DietController(IDietRepository dietRepository, ICommentRepository commentRepository, IUserRepository userRepository, IDietCategoryRepository categoryRepository, IDietMealRepository dietMealRepository, IDietIngredientRepository dietIngredientRepository, IQuantityTypeRepository quantityTypeRepository, IUserDietRepository userDietRepository, IIngredientQuantityRepository ingredientQuantityRepository, ITracer tracer) { _dietRepository = dietRepository; _commentRepository = commentRepository; _userRepository = userRepository; _categoryRepository = categoryRepository; _dietMealRepository = dietMealRepository; _dietIngredientRepository = dietIngredientRepository; _quantityTypeRepository = quantityTypeRepository; _userDietRepository = userDietRepository; _ingredientQuantityRepository = ingredientQuantityRepository; _tracer = tracer; }
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); }