예제 #1
0
 public RecipeService(
     ITaskService taskService,
     ICdnService cdnService,
     IUserService userService,
     IRecipesRepository recipesRepository,
     IMapper mapper)
 {
     _taskService       = taskService;
     _cdnService        = cdnService;
     _userService       = userService;
     _recipesRepository = recipesRepository;
     _mapper            = mapper;
 }
 public RecipesController(IRecipesRepository recipesRepository,
                          IInstructionsRepository instructionsRepository,
                          IIngredientsRepository ingredientsRepository,
                          IProductsRepository productsRepository,
                          IProductStoresRepository productStoresRepository,
                          IStoresRepository storesRepository)
 {
     _recipesRepository       = recipesRepository;
     _instructionsRepository  = instructionsRepository;
     _ingredientsRepository   = ingredientsRepository;
     _productsRepository      = productsRepository;
     _productStoresRepository = productStoresRepository;
     _storesRepository        = storesRepository;
 }
예제 #3
0
        public RecipesController(IRecipesRepository repository, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _repository       = repository;
            _mapper           = mapper;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
예제 #4
0
        public RecipesRepositoryTests(RecipeDbContextFixture recipeDbContextFixture)
        {
            var services = new ServiceCollection();

            services.AddAutoMapper(typeof(RecipesDbContext).Assembly);

            this.serviceProvider        = services.BuildServiceProvider();
            this.recipeDbContextFixture = recipeDbContextFixture;

            this.recipesRepository = new Repositories.RecipesRepository(
                this.recipeDbContextFixture.RecipesDbContext,
                this.serviceProvider.GetService <IMapper>()
                );
        }
예제 #5
0
 public RecipesController(
     UserManager <ApplicationUser> userManager,
     IMapper mapper,
     IRecipesRepository recipesRepository,
     IUsersRepository usersRepository,
     ITagsRepository tagsRepository,
     IIngredientsRepository ingredientsRepository,
     IFavouriteRecipesRepository favouriteRecipesRepository)
 {
     _userManager                    = userManager;
     _mapper                         = mapper;
     this.recipesRepository          = recipesRepository;
     this.usersRepository            = usersRepository;
     this.tagsRepository             = tagsRepository;
     this.ingredientsRepository      = ingredientsRepository;
     this.favouriteRecipesRepository = favouriteRecipesRepository;
 }
예제 #6
0
 public DataService(IRecipesRepository recipesRepository, IIngredientRepository ingredientRepository, IUnitRepository unitRepository)
 {
     this.unitRepository       = unitRepository;
     this.recipesRepository    = recipesRepository;
     this.ingredientRepository = ingredientRepository;
 }
예제 #7
0
 public RecipesService(IRecipesRepository repo)
 {
     _repo = repo;
 }
예제 #8
0
 public RecipesController(IRecipesRepository recipes)
 {
     _recipes = recipes;
 }
예제 #9
0
 public RecipesService(IRecipesRepository <Recipe> recipesRepository, CookbookDbContext context,
                       IMapper mapper, IUserContextService userContextService, IAuthorizationService authorizationService)
     : base(context, mapper, userContextService, authorizationService)
 {
     _recipesRepository = recipesRepository;
 }
예제 #10
0
 public WeeklyMenuService(IWeeklyMenuRepository MenuRepo, IRecipesRepository RecipeRepo)
 {
     this.MenuRepo   = MenuRepo;
     this.RecipeRepo = RecipeRepo;
 }
예제 #11
0
 public UsersController(IRecipesRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
예제 #12
0
 public UsersController(IRecipesRepository recipesRepository, IMapper mapper, IUserRepository userRepository)
 {
     _userRepository    = userRepository;
     _recipesRepository = recipesRepository;
     _mapper            = mapper;
 }
예제 #13
0
 public FindRecipeController(IRecipesRepository repository)
 {
     _repository = repository;
 }
예제 #14
0
 public RatingService(IRatingRepository RatingRepo, IRecipesRepository RecipeRepository)
 {
     this.RatingRepo       = RatingRepo;
     this.RecipeRepository = RecipeRepository;
 }
예제 #15
0
 public RecipesController(IRecipesRepository repository)
 {
     _repository = repository;
 }
예제 #16
0
 public AddRecipeCommandHandler([NotNull] IRecipesRepository recipesRepository)
 {
     _recipesRepository = recipesRepository ?? throw new ArgumentNullException(nameof(recipesRepository));
 }
예제 #17
0
 public RecipesController(IRecipesRepository repo = null) =>
예제 #18
0
 public HomeController(IRecipesRepository recipesRepo)
 {
     _recipesRepo = recipesRepo;
 }
예제 #19
0
 public RecipesService(IRecipesRepository recipesRepository, IRecipeTypesService recipeTypesService)
 {
     _recipeRepository   = recipesRepository;
     _recipeTypesService = recipeTypesService;
 }
예제 #20
0
 public RecipesService(IRecipesRepository recipesRepository, IIngredientsRepository ingredientsRepository)
 {
     _recipesRepository     = recipesRepository;
     _ingredientsRepository = ingredientsRepository;
 }
예제 #21
0
 public RecipesController(IRecipesRepository recipesRepository,
                          IMapper mapper)
 {
     _recipesRepository = recipesRepository ?? throw new ArgumentNullException(nameof(recipesRepository));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
예제 #22
0
 public Handler(IRecipesRepository recipesRepository, IUserContext userContext)
 {
     this.recipesRepository = recipesRepository;
     this.userContext       = userContext;
 }
예제 #23
0
 public GetUserRecipesQueryHandler(IRecipesRepository recipesRepository)
 {
     _recipesRepository = recipesRepository;
 }
예제 #24
0
 public RecipeCoreController(IRecipesRepository reciperepository)
 {
     _recipeRepository = reciperepository;
 }
예제 #25
0
 public LeftMenuController(IRecipesRepository repository)
 {
     this.repository = repository;
 }
 public ValuesController(IRecipesRepository reciperepository)
 {
     _recipeRepository = reciperepository;
 }
예제 #27
0
 public RecipesService(IRecipesRepository RecipeRepo)
 {
     this.RecipeRepo = RecipeRepo;
 }
예제 #28
0
 public CategoryController(IRecipesRepository repository)
 {
     this.repository = repository;
 }
예제 #29
0
 public RecipeController(IRecipesRepository repository)
 {
     this.repository = repository;
 }
예제 #30
0
 public RecipesController(IRecipesRepository repository, IFoodItemsRepository foodItemsRepository)
 {
     _recipeRepository    = repository;
     _foodItemsRepository = foodItemsRepository;
 }
예제 #31
0
 public GetRecipeQueryHandler([NotNull] IRecipesRepository recipesRepository)
 {
     _recipesRepository = recipesRepository ?? throw new ArgumentNullException(nameof(recipesRepository));
 }
예제 #32
0
 public RecipesController(IRecipesRepository _recipesRepository, ILogger <RecipesController> _logger)
 {
     recipesRepository = _recipesRepository;
     logger            = _logger;
 }
예제 #33
0
 public RecipesService(IRecipesRepository recipesRepository)
 {
     _recipesRepository = recipesRepository;
 }