public OrdersController(IOrderRepository orderRepo, IBeverageRepository beverageRepo, ILogger <OrdersController> logger, IMapper mapper)
 {
     _orderRepo    = orderRepo;
     _beverageRepo = beverageRepo;
     _logger       = logger;
     _mapper       = mapper;
 }
 public OrderController(IAppetizerRepository appetizer, IBeverageRepository beverage, ICrustRepository crust, ISpecialtyPizzaRepository specialty, IToppingRepository custompizzatopping)
 {
     this.Appetizers = appetizer;
     this.Beverages  = beverage;
     this.Crusts     = crust;
     this.Special    = specialty;
     this.Toppings   = custompizzatopping;
 }
 public BeveragesController(IBeverageRepository repository)
 {
     if (repository == null)
     {
         _repository = new BeverageRepository();
     }
     else
     {
         _repository = repository;
     }
 }
Exemple #4
0
        public BaseVendingMachine(ICoinAcceptor coinAcceptor, IVendingMachineWallet wallet,
                                  IBeverageRepository beverageRepository)
        {
            if (coinAcceptor == null || wallet == null || beverageRepository == null)
            {
                throw new ArgumentNullException();
            }

            CoinAcceptor       = coinAcceptor;
            Wallet             = wallet;
            BeverageRepository = beverageRepository;
        }
 public BeveragesController()
 {
     _repository = new BeverageRepository();
 }
Exemple #6
0
 public BeveragesController(IBeverageRepository beverageRepo, ILogger <BeveragesController> logger, IMapper mapper)
 {
     _beverageRepo = beverageRepo;
     _logger       = logger;
     _mapper       = mapper;
 }
 public BeverageService(IBeverageRepository beverageRepository)
 {
     _beverageRepository = beverageRepository;
 }
 public CoolerManager(ICoolerRepository coolerRepository, IBeverageRepository beverageRepository, IEntityValidatorFactory entityValidatorFactory)
 {
     this._coolerRepository = coolerRepository;
     this._beverageRepository = beverageRepository;
     this._entityValidatorFactory = entityValidatorFactory;
 }
Exemple #9
0
 public VendingMachine(ICoinAcceptor coinAcceptor, IVendingMachineWallet wallet,
                       IBeverageRepository repository)
     : base(coinAcceptor, wallet, repository)
 {
 }
Exemple #10
0
 public BeverageDomainService(IBeverageRepository repository, IBeveragePolicy policy, IBeverageValidationService validationService, ILeadRepository leadRepository, IImageUrlService imageUrlService)
     : base(repository, policy, validationService)
 {
     LeadRepository  = leadRepository;
     ImageUrlService = imageUrlService;
 }
 public BeverageController(IBeverageRepository repo) => Repository = repo;