Example #1
0
 public SeedService(IIngredientsRepository ingredientsRepository, IDishesRepository dishesRepository, IWebHostEnvironment hostingEnvironment, IDishesIngredientsRepository dishesIngredientsRepository)
 {
     _ingredientsRepository       = ingredientsRepository;
     _hostingEnvironment          = hostingEnvironment;
     _dishesRepository            = dishesRepository;
     _dishesIngredientsRepository = dishesIngredientsRepository;
 }
Example #2
0
 static Unit()
 {
     _context           = new MyAppDbContext("Receipt");
     ProductsRepository = new ProductsRepository(_context);
     ReceiptsRepository = new ReceiptsRepository(_context);
     DishesRepository   = new DishesRepository(_context);
 }
Example #3
0
 public DishesIngredientsController(IIngredientsRepository ingredientsRepository, IDishesIngredientsRepository dishesIngredientsRepository, IDishesRepository dishesRepository, IDishesIngredientsService dishIngredientsService)
 {
     _ingredientsRepository       = ingredientsRepository;
     _dishesIngredientsRepository = dishesIngredientsRepository;
     _dishesRepository            = dishesRepository;
     _dishIngredientsService      = dishIngredientsService;
 }
Example #4
0
 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;
 }
Example #5
0
 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);
 }
Example #6
0
 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;
 }
Example #7
0
 public HomeController(IDishesRepository dr, IOrdersRepository or)
 {
     dRepository = dr;
     oRepository = or;
 }
Example #8
0
 public DishesService(IDishesRepository newDishesRepository)
 {
     this.dishesRepository = newDishesRepository;
 }
 public HomeController(IDishesRepository repository)
 {
     this.repository = repository;
 }
Example #10
0
 public AdminController(IDishesRepository repository)
 {
     this.repository = repository;
 }
Example #11
0
 public DishesIngredientsService(IDishesRepository dishesRepository, IIngredientsRepository ingredientsRepository, IDishesIngredientsRepository dishesIngredientsRepository)
 {
     _dishRepository              = dishesRepository;
     _ingredientsRepository       = ingredientsRepository;
     _dishesIngredientsRepository = dishesIngredientsRepository;
 }
Example #12
0
 public DishDetailsController(IDishesRepository repository)
 {
     this.repository = repository;
 }
Example #13
0
 public void Setup2()
 {
     //_repository = DependencyResolver.Current.GetService<IDishesRepository>(_contextMock);
     _repository = new DishesRepository(_contextMock.Object);
 }
Example #14
0
 public DishesController(IDishesRepository dishesRepository, IMapper mapper)
 {
     _dishesRepository = dishesRepository;
     _mapper           = mapper;
 }
Example #15
0
 public DishesController(IDishesRepository dishesRepository)
 {
     _dishesRepository = dishesRepository;
 }
 public CartController(IDishesRepository repo, IOrderProcessing orderProcess)
 {
     this.repository = repo;
     orderProcessing = orderProcess;
 }
Example #17
0
 public DishesController(IDishesRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Example #18
0
 public DishesController(IDishesRepository dishesRepository, IMapper mapper, IMediator mediator)
 {
     _dishesRepository = dishesRepository;
     _mapper           = mapper;
     _mediator         = mediator;
 }
Example #19
0
 public DishesController(IDishesRepository dr)
 {
     dRepository = dr;
 }