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