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