public OrdersController(IOrderRepository orderRepository, IDrinkTypesRepository drinkTypeRepository, IDrinkRepository drinkRepository)
 {
     OrderRepository     = orderRepository;
     DrinkTypeRepository = drinkTypeRepository;
     DrinkRepository     = drinkRepository;
     _twilioClient       = new TwilioRestClient(ConfigurationManager.AppSettings["TwilioSid"], ConfigurationManager.AppSettings["TwilioToken"]);
 }
 public HomeController(ILogger <HomeController> logger, IDrinkRepository drinkRepository, IOrderRepository orderRepository, IBartenderRepository bartenderRepository)
 {
     _logger              = logger;
     _drinkRepository     = drinkRepository;
     _orderRepository     = orderRepository;
     _bartenderRepository = bartenderRepository;
 }
Beispiel #3
0
 public BillService(IBillRepository billRepository, IBillDetailRepository billDetailRepository, IDrinkRepository drinkRepository, IPromotionDetailRepository promotionDetailRepository)
 {
     this.billRepository            = billRepository;
     this.billDetailRepository      = billDetailRepository;
     this.drinkRepository           = drinkRepository;
     this.promotionDetailRepository = promotionDetailRepository;
 }
Beispiel #4
0
 public HomeController(ICategoryRepository categoryRepository, IDrinkRepository drinkRepository, IPromotionRepository promotionRepository, INotifyPopupRepository notifyPopupRepository)
 {
     _categoryRepository    = categoryRepository;
     _drinkRepository       = drinkRepository;
     _promotionRepository   = promotionRepository;
     _notifyPopupRepository = notifyPopupRepository;
 }
 public DrinkController(IMapper mapper, IDrinkRepository drinkRepository, ICategoryRepository categoryRepository, IToppingRepository toppingRepository)
 {
     _mapper             = mapper;
     _drinkRepository    = drinkRepository;
     _categoryRepository = categoryRepository;
     _toppingRepository  = toppingRepository;
 }
Beispiel #6
0
 public ReportController(IOrderRepository orderRepository, IOrderDetailRepository orderDetailRepository, IDrinkRepository drinkRepository, ICategoryRepository categoryRepository)
 {
     _orderRepository       = orderRepository;
     _orderDetailRepository = orderDetailRepository;
     _drinkRepository       = drinkRepository;
     _categoryRepository    = categoryRepository;
 }
 public DrinksManageController(ICategoryManager categoryManager,
                               IAdminDrinkService drinks, IDrinkRepository drinksRepo, ApplicationDbContext db)
 {
     this.categoryManager = categoryManager;
     this._db             = db;
     this.drinks          = drinks;
     this._drinksRepo     = drinksRepo;
 }
Beispiel #8
0
 public PurchaseController(ApplicationContext context)
 {
     _context             = context;
     _shoppingRepository  = new ShoppingBasketsRepository(_context);
     _drinkRepository     = new DrinkRepository(_context);
     _orderRepository     = new OrderRepository(_context);
     _purchasedRepository = new PurchasedGoodRepository(_context);
 }
Beispiel #9
0
 public MenuCardService(IDrinkRepository drinkRepository,
                        IPizzaRepository pizzaRepository,
                        ISaladRepository saladRepository,
                        ISauceRepository sauceRepository)
 {
     _drinkRepository = drinkRepository;
     _pizzaRepository = pizzaRepository;
     _saladRepository = saladRepository;
     _sauceRepository = sauceRepository;
 }
Beispiel #10
0
 public Automat(OrderController orderController,
                IDrinkRepository drinksRepo, IDisplay display,
                IIngsRepository ingsRepo,
                string address)
 {
     this.orderController = orderController;
     this.drinksRepo      = drinksRepo;
     this.display         = display;
     this.ingsRepo        = ingsRepo;
     this.Address         = address;
 }
Beispiel #11
0
 public DrinksController(
     IDrinkRepository drinkRepository,
     IMapper mapper,
     IActionContextAccessor actionContextAccessor,
     IUrlHelperFactory urlHelperFactory
     )
 {
     _drinkRepository = drinkRepository;
     _mapper          = mapper;
     _urlHelper       = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
Beispiel #12
0
 public UnitOfWork(EFDBContext context, ICoffeeMachineRepository coffeeMachineRepository,
                   IDrinkRepository drinkRepository, ICoffeeMachineIngredientsRepository coffeeMachineIngredientsRepository,
                   IDrinkIngredientsRepository drinkIngredientsRepository, IOrdersRepository orderRepository)
 {
     _context                 = context;
     CoffeeMachines           = coffeeMachineRepository;
     Drinks                   = drinkRepository;
     CoffeeMachineIngredients = coffeeMachineIngredientsRepository;
     Orders                   = orderRepository;
     DrinkIngredients         = drinkIngredientsRepository;
 }
Beispiel #13
0
 public CreateOrUpdateUserCommandHandler(
     IUserRepository userRepository,
     IDrinkRepository drinkRepository,
     IActivityRepository activityRepository,
     IHttpClientFactory httpClientFactory,
     IStorageAccessService storageAccessService)
 {
     this.userRepository       = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     this.drinkRepository      = drinkRepository ?? throw new ArgumentNullException(nameof(drinkRepository));
     this.activityRepository   = activityRepository ?? throw new ArgumentNullException(nameof(activityRepository));
     this.httpClientFactory    = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     this.storageAccessService = storageAccessService ?? throw new ArgumentNullException(nameof(storageAccessService));
 }
Beispiel #14
0
        public DrinkController(IDrinkRepository drinkRepository)
        {
            _drinkRepo = drinkRepository;

            if (_drinks.Count == 0)
            {
                _drinks = new List <DrinkModel>();

                foreach (var drink in _drinkRepo.GetDrinks())
                {
                    _drinks.Add(new DrinkModel(drink));
                }
            }
        }
 public DrinksController(
     IDrinkRepository drinkRepository,
     IDrinkSearchService drinkSearchService,
     IFavouriteRepository favouriteRepository,
     IReviewRepository reviewRepository,
     UserManager <AppUser> userManager,
     IReportingModuleService apiService,
     IStringLocalizer <SharedResource> localizer)
 {
     _drinkRepository     = drinkRepository;
     _drinkSearchService  = drinkSearchService;
     _favouriteRepository = favouriteRepository;
     _reviewRepository    = reviewRepository;
     _userManager         = userManager;
     _localizer           = localizer;
     _apiService          = apiService;
 }
Beispiel #16
0
 public OrderController(IOrderRepository orderRepository,
                        //ShoppingCart shoppingCart,
                        IDrinkRepository drinkRepository,
                        IToppingRepository toppingRepository,
                        IPromotionRepository promotionRepository,
                        IGenericRepository <Device> deviceRepository,
                        IMapper mapper,
                        IHubContext <NotifyHub> hubContext,
                        IConfiguration configuration)
 {
     _orderRepository = orderRepository;
     //_shoppingCart = shoppingCart;
     _drinkRepository     = drinkRepository;
     _toppingRepository   = toppingRepository;
     _promotionRepository = promotionRepository;
     _deviceRepository    = deviceRepository;
     _mapper        = mapper;
     _hubContext    = hubContext;
     _configuration = configuration;
 }
 public OrdersController(IOrderRepository orderRepository, IOrderDetailRepository orderDetailRepository, IToppingRepository toppingRepository, IOrderSourceRepository orderSourceRepository,
                         IDrinkRepository drinkRepository, ICategoryRepository categoryRepository, IPromotionRepository promotionRepository, IPrivatePromotionRepository privatePromotionRepository,
                         IPersonRepository personRepository, IAgencyRepository agencyRepository, IOrderSourceTypeRepository orderSourceTypeRepository, IDeliveryPartnerRepository deliveryPartnerRepository,
                         IMapper mapper, IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor, IPdfService pdfService)
 {
     _orderRepository            = orderRepository;
     _orderDetailRepository      = orderDetailRepository;
     _promotionRepository        = promotionRepository;
     _drinkRepository            = drinkRepository;
     _categoryRepository         = categoryRepository;
     _toppingRepository          = toppingRepository;
     _privatePromotionRepository = privatePromotionRepository;
     _personRepository           = personRepository;
     _agencyRepository           = agencyRepository;
     _orderSourceRepository      = orderSourceRepository;
     _orderSourceTypeRepository  = orderSourceTypeRepository;
     _deliveryPartnerRepository  = deliveryPartnerRepository;
     _mapper              = mapper;
     _hostingEnvironment  = environment;
     _httpContextAccessor = httpContextAccessor;
     _pdfService          = pdfService;
 }
 public DrinkDataController(IDrinkRepository drinkRepository)
 {
     _drinkRepository = drinkRepository;
 }
 public HomeController(IDrinkRepository drinkRepository, IHttpContextAccessor httpContextAccessor, IHostingEnvironment environment)
 {
     _drinkRepository     = drinkRepository;
     _environment         = environment;
     _httpContextAccessor = httpContextAccessor;
 }
Beispiel #20
0
 public HomeController(ILogger <HomeController> logger, IDrinkRepository drinkRepository)
 {
     _logger          = logger;
     _drinkRepository = drinkRepository;
 }
Beispiel #21
0
 public PrivatePromotionDrinkItemViewComponent(IPrivatePromotionRepository privatePromotionRepository, IDrinkRepository drinkRepository, IToppingRepository toppingRepository)
 {
     _privatePromotionRepository = privatePromotionRepository;
     _drinkRepository            = drinkRepository;
     _toppingRepository          = toppingRepository;
 }
Beispiel #22
0
 public DrinkController(ICategoryRepository categoryRepository, IDrinkRepository drinkRepository)
 {
     _categoryRepository = categoryRepository;
     _drinkRepository    = drinkRepository;
 }
Beispiel #23
0
 public DrinkController(IDrinkRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #24
0
 public DrinkService(IDrinkRepository drinkRepository, IEventBus eventBus)
 {
     _drinkRepository = drinkRepository;
     _eventBus = eventBus;
 }
 public DrinkController(ICategoryRepository repoCategory, IDrinkRepository repoDrink)
 {
     this.categoryRepository = repoCategory;
     this.drinkRepository    = repoDrink;
 }
Beispiel #26
0
 public DrinkService(IDrinkRepository repository)
 {
     this._repository = repository;
 }
Beispiel #27
0
 public HomeController(IDrinkRepository iDrinkRepository, ICategoryRepository iCategoryRepository)
 {
     _iDrinkRepository    = iDrinkRepository;
     _iCategoryRepository = iCategoryRepository;
 }
 public DrinkController(IDrinkRepository drink, ICategoryRepository category)
 {
     drinkRepository    = drink;
     categoryRepository = category;
 }
 public HomeController(IDrinkRepository drinkRepository)
 {
     _drinkRepository = drinkRepository;
 }
 public DrinksController(ICategoryRepository categoryRepository, IDrinkRepository drinkRepository)
 {
     this._categoryRepository = categoryRepository;
     this._drinkRepository    = drinkRepository;
 }
Beispiel #31
0
 public ShoppingCartController(IDrinkRepository drinkRepository, ShoppingCart shoppingCart)
 {
     _drinkRepository = drinkRepository;
     _shoppingCart    = shoppingCart;
 }
 private DrinksController(IDrinkRepository drinkRepository)
 {
     _drinkRepository = drinkRepository;
 }