public GiftCardController( [NotNull] IAccountManager accountManager, [NotNull] IContactFactory contactFactory, [NotNull] IGiftCardRepository giftCardRepository) : base(accountManager, contactFactory) { _giftCardRepository = giftCardRepository; }
public GiftCardAppService( IGiftCardPasswordHashProvider giftCardPasswordHashProvider, IGiftCardManager giftCardManager, IGiftCardTemplateRepository giftCardTemplateRepository, IGiftCardRepository repository) : base(repository) { _giftCardPasswordHashProvider = giftCardPasswordHashProvider; _giftCardManager = giftCardManager; _giftCardTemplateRepository = giftCardTemplateRepository; }
public BasketValidationService( IStockItemRepository stockItemRepository, IOfferRepository offerRepository, IGiftCardRepository giftCardRepository, IMapper mapper) { this.stockItemRepository = stockItemRepository; this.offerRepository = offerRepository; this.giftCardRepository = giftCardRepository; this.mapper = mapper; }
public GiftCardSampleDataSeeder( IGuidGenerator guidGenerator, IGiftCardPasswordHashProvider giftCardPasswordHashProvider, IGiftCardTemplateRepository giftCardTemplateRepository, IGiftCardRepository giftCardRepository) { _guidGenerator = guidGenerator; _giftCardPasswordHashProvider = giftCardPasswordHashProvider; _giftCardTemplateRepository = giftCardTemplateRepository; _giftCardRepository = giftCardRepository; }
public bool OwnesGiftCard(ClaimsPrincipal user, int giftCardId, IGiftCardRepository _giftCards, ICustomerRepository _customers, IAuthRepository _auth) { var customerId = _giftCards.Get(giftCardId).CustomerId; var restaurantId = _customers.Get(customerId).RestaurantId; if (this.GetUserEntity(user, _auth).RestaurantId == restaurantId) { return(true); } return(false); }
public BasketService( IBasketRepository basketRepository, IStockItemRepository stockItemRepository, IOfferRepository offerRepository, IGiftCardRepository giftCardRepository, IMapper mapper) { this.basketRepository = basketRepository; this.stockItemRepository = stockItemRepository; this.offerRepository = offerRepository; this.giftCardRepository = giftCardRepository; this.mapper = mapper; }
public GiftCardManager( IClock clock, IDistributedEventBus distributedEventBus, IUnitOfWorkManager unitOfWorkManager, IGiftCardTemplateRepository giftCardTemplateRepository, IGiftCardRepository repository, IGiftCardPasswordHashProvider giftCardPasswordHashProvider) { _clock = clock; _distributedEventBus = distributedEventBus; _unitOfWorkManager = unitOfWorkManager; _giftCardTemplateRepository = giftCardTemplateRepository; _repository = repository; _giftCardPasswordHashProvider = giftCardPasswordHashProvider; }
public ManageController(IAddressRepository addressRepo, IContactInfoRepository contactInfoRepo, IUserDetailRepository userDetailRepo, IOrderRepository orderRepo, ICreditCardRepository creditCardRepo, IGiftCardRepository giftCardRepo, IFavorRestaurantRepository favorRestaurantRepo, IVoteRepository VoteRepo) { AddressRepository = addressRepo; ContactInfoRepository = contactInfoRepo; UserDetailRepository = userDetailRepo; OrderRepository = orderRepo; CreditCardRepository = creditCardRepo; GiftCardRepository = giftCardRepo; FavorRestaurantRepository = favorRestaurantRepo; VoteRepository = VoteRepo; }
public CartController( IAccountManager accountManager, IContactFactory contactFactory, IGiftCardRepository gitCardRepository, ICatalogRepository catalogRepository, ICartRepository cartRepository, ILogger logger) : base(accountManager, contactFactory) { ContactFactory = contactFactory; _catalogRepository = catalogRepository; _giftCardRepository = gitCardRepository; _cartRepository = cartRepository; _logger = logger; }
public GiftCardController(IGiftCardRepository giftcards, IAuthRepository auth, IRestaurantRepository restaurant, ICityRepository city, IHelper helper, ICustomerRepository customers, IGiftCardTypeRepository giftCardTypes) { this._auth = auth; this._customers = customers; this._giftcards = giftcards; this._giftCardTypes = giftCardTypes; this._helper = helper; this._restaurant = restaurant; this._city = city; }
public HomeController(IBizInfoRepository bizInfoRepo, IBizCuisineRepository bizCuisineRepo, IGiftCardRepository giftCardRepo, IUserRepository userRepo, ICreditCardTypeRepository creditCardTypeRepo, ICreditCardRepository creditCardRepo, IDiscountCouponRepository discountCouponRepo, IFreeItemCouponRepository freeItemCouponRepo, IHotelRepository hotelRepo, IHotelTypeRepository hotelTypeRepo) { BizInfoRepository = bizInfoRepo; BizCuisineRepository = bizCuisineRepo; GiftCardRepository = giftCardRepo; UserRepository = userRepo; CreditCardTypeRepository = creditCardTypeRepo; CreditCardRepository = creditCardRepo; DiscountCouponRepository = discountCouponRepo; FreeItemCouponRepository = freeItemCouponRepo; HotelRepository = hotelRepo; HotelTypeRepository = hotelTypeRepo; }
public ReportController(IOrderRepository orders, IReservationRepository reservations, IGiftCardRepository giftcards, IAuthRepository auth, ICustomerRepository customers, IOrderTypeRepository orderTypes, IReservationStatusRepository reservationStatuses, IGiftCardRepository giftCards, IGiftCardTypeRepository giftCardTypes, IHelper helper) { this._orders = orders; this._reservations = reservations; this._giftcards = giftcards; this._helper = helper; this._auth = auth; this._customers = customers; this._orderTypes = orderTypes; this._reservationStatuses = reservationStatuses; this._giftcards = giftcards; this._giftCardTypes = giftCardTypes; }
public GiftCardManager(IGiftCardRepository repository) { Repository = repository; }
public GiftCardService(IGiftCardRepository giftCardRepository) { _giftCardRepository = giftCardRepository; }
public GiftCardController(IGiftCardRepository repo) { _repo = repo; }
public PreviousVersionModel(IGiftCardRepository repository) { _repository = repository; }
public IndexModel(IGiftCardRepository repository) { _repository = repository; }
public CreateModel(IGiftCardRepository repository) { _repository = repository; }
public GiftCardService(IGiftCardRepository iGiftCardRepository) { this._iGiftCardRepository = iGiftCardRepository; }
public GiftCardTransactionService(IGiftCardTransactionRepository giftCardTransactionRepository, IGiftCardRepository giftCardRepository) { _giftCardTransactionRepository = giftCardTransactionRepository; _giftCardRepository = giftCardRepository; }
public DetailsModel(IGiftCardRepository repository) { _repository = repository; }
public GiftCardService(IGiftCardRepository giftCardRepo) { _giftCardRepo = giftCardRepo; }