public SeedService(IIngredientsRepository ingredientsRepository, IDishesRepository dishesRepository, IWebHostEnvironment hostingEnvironment, IDishesIngredientsRepository dishesIngredientsRepository) { _ingredientsRepository = ingredientsRepository; _hostingEnvironment = hostingEnvironment; _dishesRepository = dishesRepository; _dishesIngredientsRepository = dishesIngredientsRepository; }
static Unit() { _context = new MyAppDbContext("Receipt"); ProductsRepository = new ProductsRepository(_context); ReceiptsRepository = new ReceiptsRepository(_context); DishesRepository = new DishesRepository(_context); }
public DishesIngredientsController(IIngredientsRepository ingredientsRepository, IDishesIngredientsRepository dishesIngredientsRepository, IDishesRepository dishesRepository, IDishesIngredientsService dishIngredientsService) { _ingredientsRepository = ingredientsRepository; _dishesIngredientsRepository = dishesIngredientsRepository; _dishesRepository = dishesRepository; _dishIngredientsService = dishIngredientsService; }
public DataManager(IBannersRepository bannersRepository, ICategoriesRepository categoriesRepository, IDishesRepository dishesRepository, IEventsRepository eventsRepository, IOrdersRepository ordersRepository, ITextFieldsRepository textFieldsRepository) { Banners = bannersRepository; Categories = categoriesRepository; Dishes = dishesRepository; Events = eventsRepository; Orders = ordersRepository; TextFields = textFieldsRepository; }
public DishesController(AppDbContext context, IDishesRepository dishesRepo, ILogger <DishesController> logger, IConfiguration Configuration, SharedViewLocalizer localizer) { _context = context; _logger = logger; _configuration = Configuration; _dishesRepo = dishesRepo; _localizer = localizer; int.TryParse(_configuration["SQL:PageRecords"], out pageRecords); }
public DataManager(IDishesRepository dishesRepository, ITagsRepository tagsRepository, ICategoriesRepository categoriesRepository, IBasketsRepository basketsRepository, IImagesRepository imagesRepository, IOrderInfoRepository orderInfoRepository) { _dishesRepository = dishesRepository; _categoriesRepository = categoriesRepository; _tagsRepository = tagsRepository; _basketsRepository = basketsRepository; _imagesRepository = imagesRepository; _orderInfoRepository = orderInfoRepository; }
public HomeController(IDishesRepository dr, IOrdersRepository or) { dRepository = dr; oRepository = or; }
public DishesService(IDishesRepository newDishesRepository) { this.dishesRepository = newDishesRepository; }
public HomeController(IDishesRepository repository) { this.repository = repository; }
public AdminController(IDishesRepository repository) { this.repository = repository; }
public DishesIngredientsService(IDishesRepository dishesRepository, IIngredientsRepository ingredientsRepository, IDishesIngredientsRepository dishesIngredientsRepository) { _dishRepository = dishesRepository; _ingredientsRepository = ingredientsRepository; _dishesIngredientsRepository = dishesIngredientsRepository; }
public DishDetailsController(IDishesRepository repository) { this.repository = repository; }
public void Setup2() { //_repository = DependencyResolver.Current.GetService<IDishesRepository>(_contextMock); _repository = new DishesRepository(_contextMock.Object); }
public DishesController(IDishesRepository dishesRepository, IMapper mapper) { _dishesRepository = dishesRepository; _mapper = mapper; }
public DishesController(IDishesRepository dishesRepository) { _dishesRepository = dishesRepository; }
public CartController(IDishesRepository repo, IOrderProcessing orderProcess) { this.repository = repo; orderProcessing = orderProcess; }
public DishesController(IDishesRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public DishesController(IDishesRepository dishesRepository, IMapper mapper, IMediator mediator) { _dishesRepository = dishesRepository; _mapper = mapper; _mediator = mediator; }
public DishesController(IDishesRepository dr) { dRepository = dr; }