コード例 #1
0
 public HealthyNutGuysSupervisor(
     UserManager <ApplicationUser> userManager,
     IApplicationUserRepository applicationUserRepository,
     IPromoCodeRepository promoCodeRepository,
     ISpecialOfferRepository specialOfferRepository,
     IProductRepository productRepository,
     ISaleItemRepository saleItemRepository,
     ICustomProductRepository customProductRepository,
     IMixCategoryRepository mixCategoryRepository,
     IIngredientRepository ingredientRepository,
     IUserSubscriptionRepository userSubscriptionRepository,
     IUserSubscriptionProductRepository userSubscriptionProductsRepository
     )
 {
     this._userManager = userManager;
     this._applicationUserRepository          = applicationUserRepository;
     this._promoCodeRepository                = promoCodeRepository;
     this._specialOfferRepository             = specialOfferRepository;
     this._productRepository                  = productRepository;
     this._saleItemRepository                 = saleItemRepository;
     this._customProductRepository            = customProductRepository;
     this._mixCategoryRepository              = mixCategoryRepository;
     this._ingredientRepository               = ingredientRepository;
     this._userSubscriptionRepository         = userSubscriptionRepository;
     this._userSubscriptionProductsRepository = userSubscriptionProductsRepository;
 }
 public PromocodesController(IPromoCodeRepository promoCodeRepository, ICustomerRepository customerRepository,
                             IEmployeeRepository employeeRepository, IMapper mapper)
 {
     _promoCodeRepository = promoCodeRepository;
     _customerRepository  = customerRepository;
     _employeeRepository  = employeeRepository;
     _mapper = mapper;
 }
        public PromoCodeDomainServices(IPromoCodeRepository promoCodeRepository)
        {
            if (promoCodeRepository == default(IPromoCodeRepository))
            {
                throw new ArgumentNullException(nameof(promoCodeRepository));
            }

            this.promoCodeRepository = promoCodeRepository;
        }
コード例 #4
0
 public CartController(ICartRepository cartRepository, ICartIemRepository cartIemRepository,
                       ICustomerRepository customerRepository, IGameRepository gameRepository, IPromoCodeRepository promoCodeRepository)
 {
     _cartRepository      = cartRepository;
     _cartIemRepository   = cartIemRepository;
     _customerRepository  = customerRepository;
     _gameRepository      = gameRepository;
     _promoCodeRepository = promoCodeRepository;
 }
コード例 #5
0
 public PromoCodeService(IPromoCodeRepository codeRepository)
 {
     _codeRepository = codeRepository;
 }
コード例 #6
0
 public PromoCodeService(IPromoCodeRepository promoCodeRepository)
 {
     _promoCodeRepository = promoCodeRepository;
 }
コード例 #7
0
 public PromoCodeService(IPromoCodeRepository PromoCodeRepository, IUnitOfWork unitOfWork)
 {
     this.PromoCodeRepository = PromoCodeRepository;
     this.unitOfWork          = unitOfWork;
 }
コード例 #8
0
 public PromoCodeController(IPromoCodeRepository promoCodeRepository)
 {
     _promoCodeRepository = promoCodeRepository;
 }
コード例 #9
0
 public PromoCodeRepositoryCacheDecorator(IPromoCodeRepository innerRepository, IDistributedCache distributedCache)
 {
     _innerRepository  = innerRepository;
     _distributedCache = distributedCache;
 }
コード例 #10
0
 public PromoController(IPromoCodeRepository promoCodeRepository, IRequestCounterStore requestCounterStore)
 {
     _promoCodeRepository = promoCodeRepository;
     _requestCounterStore = requestCounterStore;
 }