示例#1
0
        public EcommerceService(IOrderCoordinator orderCoordinator, IProductRepository productRepository,
            IVoucherRepository voucherRepository, IContactService contactService,
            IBespokePricingHandlerFactory bespokePricingHandlerFactory)
        {
            if (orderCoordinator == null)
            {
                throw new ArgumentNullException("orderCoordinator");
            }
            _orderCoordinator = orderCoordinator;
            if (productRepository == null)
            {
                throw new ArgumentNullException("productRepository");
            }
            _productRepository = productRepository;
            if (voucherRepository == null)
            {
                throw new ArgumentNullException("voucherRepository");
            }
            _voucherRepository = voucherRepository;
            if (contactService == null) throw new ArgumentNullException("contactService");
            _contactService = contactService;

            if (bespokePricingHandlerFactory == null)
            {
                throw new ArgumentNullException("bespokePricingHandlerFactory");
            }
            _bespokePricingHandlerFactory = bespokePricingHandlerFactory;
        }
示例#2
0
 public MiniMartController(IStoreRepository storeRepository, IProductRepository productRepository, ICartRepository cartRepository, IVoucherRepository voucherRepository)
 {
     _storeRepository   = storeRepository;
     _productRepository = productRepository;
     _cartRepository    = cartRepository;
     _voucherRepository = voucherRepository;
 }
示例#3
0
 public PedidoCommandHandler(IVoucherRepository voucherRepository,
                             IPedidoRepository pedidoRepository, IMessageBus bus)
 {
     _voucherRepository = voucherRepository;
     _pedidoRepository  = pedidoRepository;
     _bus = bus;
 }
 public VoucherController(IVoucherRepository repository, IUserRepository userRepository,
                          IShowroomerRepository showroomerRepository)
 {
     _repository           = repository;
     _userRepository       = userRepository;
     _showroomerRepository = showroomerRepository;
 }
示例#5
0
        public BaseService(CosDbContext dbContext)
        {
            this.DbContext = dbContext;

            this.MailingAddressRepository   = RepositoryFactory.CreateObj <MailingAddressRepository>(dbContext);
            this.ExchangeRepository         = RepositoryFactory.CreateObj <ExchangeRepository>(dbContext);
            this.ExchangeExamineRepository  = RepositoryFactory.CreateObj <ExchangeExamineRepository>(dbContext);
            this.CooperationRepository      = RepositoryFactory.CreateObj <CooperationRepository>(dbContext);
            this.ImgRepository              = RepositoryFactory.CreateObj <ImgRepository>(dbContext);
            this.ExchangeReplyRepository    = RepositoryFactory.CreateObj <ExchangeReplyRepository>(dbContext);
            this.CooperationReplyRepository = RepositoryFactory.CreateObj <CooperationReplyRepository>(dbContext);
            this.ExchangePersonRepository   = RepositoryFactory.CreateObj <ExchangePersonRepository>(dbContext);
            this.MemberRepository           = RepositoryFactory.CreateObj <MemberRepository>(dbContext);
            this.RechargeRecordRepository   = RepositoryFactory.CreateObj <RechargeRecordRepository>(dbContext);
            this.SysParaRepository          = RepositoryFactory.CreateObj <SysParaRepository>(dbContext);
            this.ExchangeEventRepository    = RepositoryFactory.CreateObj <ExchangeEventRepository>(dbContext);
            this.DepositControlRepository   = RepositoryFactory.CreateObj <DepositControlRepository>(dbContext);
            this.LogisticRepository         = RepositoryFactory.CreateObj <LogisticRepository>(dbContext);
            this.LoginCodeRepository        = RepositoryFactory.CreateObj <LoginCodeRepository>(dbContext);
            this.ShipperCompanyRepository   = RepositoryFactory.CreateObj <ShipperCompanyRepository>(dbContext);
            this.AdminMemberRepository      = RepositoryFactory.CreateObj <AdminMemberRepository>(dbContext);
            this.CooperationClassRepository = RepositoryFactory.CreateObj <CooperationClassRepository>(dbContext);
            this.RefundRepository           = RepositoryFactory.CreateObj <RefundRepository>(dbContext);
            this.QuickNavigationRepository  = RepositoryFactory.CreateObj <QuickNavigationRepository>(dbContext);
            this.PostageRepository          = RepositoryFactory.CreateObj <PostageRepository>(dbContext);
            this.CosFileStatRepository      = RepositoryFactory.CreateObj <CosFileStatRepository>(dbContext);
            this.ExchangeClassRepository    = RepositoryFactory.CreateObj <ExchangeClassRepository>(dbContext);
            this.VoucherRepository          = RepositoryFactory.CreateObj <VoucherRepository>(dbContext);
            this.LoginIpRepository          = RepositoryFactory.CreateObj <LoginIPRepository>(dbContext);
            this.IntegralChangeRepository   = RepositoryFactory.CreateObj <IntegralChangeRepository>(dbContext);
            this.LoggingRepository          = RepositoryFactory.CreateObj <LoggingRepository>(dbContext);
            this.MemberRegisterRepository   = RepositoryFactory.CreateObj <MemberRegisterRepository>(dbContext);
            this.VersionNotesRepository     = RepositoryFactory.CreateObj <VersionNotesRepository>(dbContext);
        }
 public UserController(IUserRepository repository, IInteractionRepository interactionRepository
                       , IVoucherRepository voucherRepository, IProductRepository productRepository)
 {
     _repository            = repository;
     _interactionRepository = interactionRepository;
     _voucherRepository     = voucherRepository;
     _productRepository     = productRepository;
 }
示例#7
0
 public OrderCommandHandler(IOrderRepository orderRepository,
                            IVoucherRepository voucherRepository,
                            IMessageBus bus)
 {
     _orderRepository   = orderRepository;
     _voucherRepository = voucherRepository;
     _bus = bus;
 }
 // konstruktor této třídy
 public VoucherController(IVoucherRepository voucherRepository,
                          //IConverter converter,
                          UserManager <ApplicationUser> userManager)
 {
     this.voucherRepository = voucherRepository;
     //this.converter = converter;
     this.userManager = userManager;
 }
示例#9
0
 public VouchersController(IVoucherRepository voucherRepo,
                           IMapper mapper,
                           ILogger <FiscalYearsController> logger)
 {
     _voucherRepo = voucherRepo;
     _mapper      = mapper;
     _logger      = logger;
 }
示例#10
0
 public VoucherAppService(IVoucherService voucherService, IVoucherRepository voucherRepository,
                          IVoucherHistoricDataRepository voucherHistoricDataRepository, IVoucherHistoricDataService voucherHistoricDataService)
 {
     VoucherService                = voucherService;
     VoucherRepository             = voucherRepository;
     VoucherHistoricDataService    = voucherHistoricDataService;
     VoucherHistoricDataRepository = voucherHistoricDataRepository;
 }
 public AddCharterInStartReceiptVoucher(IVoucherRepository voucherRepository,
     IUnitOfWorkScope unitOfWorkScope
     ,IVoucherSetingRepository voucherSetingRepository)
 {
     _voucherRepository = voucherRepository;
     _unitOfWorkScope = unitOfWorkScope;
     _voucherSetingRepository = voucherSetingRepository;
 }
示例#12
0
 public VoucherController(IVoucherRepository repository, IMapper mapper, LinkGenerator linkGenerator,
                          ILogger <VoucherController> logger)
 {
     _repository    = repository;
     _mapper        = mapper;
     _linkGenerator = linkGenerator;
     _logger        = logger;
 }
示例#13
0
 public CartController(IPizzaRepository repo, IOrderlineRepository orderlineRepo, IOrderRepository orderRepo, IDeliveryRepository deliveryRepo, IVoucherRepository voucherRepo, IPizzaToppingOrderRepository pizzaToppingOrderRepo)
 {
     repository                  = repo;
     orderlineRepository         = orderlineRepo;
     orderRepository             = orderRepo;
     deliveryRepository          = deliveryRepo;
     voucherRepository           = voucherRepo;
     pizzaToppingOrderRepository = pizzaToppingOrderRepo;
 }
 public CartController(IPizzaRepository repo, IOrderlineRepository orderlineRepo, IOrderRepository orderRepo, IDeliveryRepository deliveryRepo, IVoucherRepository voucherRepo, IPizzaToppingOrderRepository pizzaToppingOrderRepo)
 {
     repository = repo;
     orderlineRepository = orderlineRepo;
     orderRepository = orderRepo;
     deliveryRepository = deliveryRepo;
     voucherRepository = voucherRepo;
     pizzaToppingOrderRepository = pizzaToppingOrderRepo;
 }
示例#15
0
 //inject the services
 public BaseService(IGiftVoucherService giftService, IDiscountVoucherService discountService,
                    IValueVoucherService valueService, IVoucherRepository voucherRepository, ILogger <BaseService> logger)
 {
     this._giftVoucherService     = giftService;
     this._discountVoucherService = discountService;
     this._valueVoucherService    = valueService;
     this._baseRepository         = voucherRepository;
     this._logger = logger;
 }
示例#16
0
 public DishonourLetterRepository(
     IDataObjectRepository objectRepository,
     IDfsConfiguration dfsConfiguration,
     IVoucherRepository voucherRepository)
 {
     this.objectRepository = objectRepository;
     this.dfsConfiguration = dfsConfiguration;
     this.voucherRepository = voucherRepository;
 }
 public ShowroomerController(IShowroomerRepository repository, IVoucherRepository voucherRepository,
                             IInteractionRepository interactionRepository, IShowroomRepository showroomRepository,
                             IProductRepository productRepository)
 {
     _repository            = repository;
     _voucherRepository     = voucherRepository;
     _interactionRepository = interactionRepository;
     _showroomRepository    = showroomRepository;
     _productRepository     = productRepository;
 }
 public CommentController(ICommentRepository repository, IUserRepository userRepository,
                          IProductRepository productRepository, IVoucherRepository voucherRepository,
                          IRateRepository rateRepository)
 {
     _repository        = repository;
     _productRepository = productRepository;
     _userRepository    = userRepository;
     _voucherRepository = voucherRepository;
     _rateRepository    = rateRepository;
 }
示例#19
0
 public CustomerMakeParameterSetMapper(
     IBusRepository busRepository,
     IUserRepository userRepository,
     IVoucherRepository voucherRepository,
     IBookingRepository bookingRepository)
 {
     _busRepository     = busRepository;
     _userRepository    = userRepository;
     _voucherRepository = voucherRepository;
     _bookingRepository = bookingRepository;
 }
示例#20
0
 public CartController(ISession session,
                       ICartRepository cartRepository,
                       IProductRepository productRepository,
                       IVoucherRepository voucherRepository,
                       IPurchaseRepository purchaseRepository)
 {
     _session            = session;
     _cartRepository     = cartRepository;
     _productRepository  = productRepository;
     _voucherRepository  = voucherRepository;
     _purchaseRepository = purchaseRepository;
 }
示例#21
0
 public CartController(ISession session, 
                       ICartRepository cartRepository, 
                       IProductRepository productRepository, 
                       IVoucherRepository voucherRepository, 
                       IPurchaseRepository purchaseRepository)
 {
     _session = session;
     _cartRepository = cartRepository;
     _productRepository = productRepository;
     _voucherRepository = voucherRepository;
     _purchaseRepository = purchaseRepository;
 }
示例#22
0
        public FinanceController(IAccountRepository accountrepo, IVoucherRepository vourepo, IVoucherDetailRepository voudetailrepo,
                                 ITransactionAccountRepository ualrepo,
                                 IPostedVoucherRepository postvourepo, IUnpostedVoucherRepository unpostvourepo,
                                 IFinancialYearRepository financeyearrepo, IVoucherTypeRepository vouchertyperepo)
        {
            Account_Repo = accountrepo;
            UAL_Repo     = ualrepo;

            Vou_repo         = vourepo;
            VouDetail_repo   = voudetailrepo;
            PostedVou_repo   = postvourepo;
            UnpostedVou_repo = unpostvourepo;

            FinancialYear_Repo = financeyearrepo;
            VoucherType_Repo   = vouchertyperepo;
        }
示例#23
0
 public VoucherController(ISession session, IVoucherRepository voucherRepository, IVoucherCodeGenerator codeGenerator)
 {
     _session = session;
     _voucherRepository = voucherRepository;
     _codeGenerator = codeGenerator;
 }
示例#24
0
 public VoucherService(IVoucherRepository voucherRepository, IVoucherDetailRepository voucherDetailRepository, IUnitOfWork unitOfWork)
 {
     _voucherRepository = voucherRepository;
     _voucherDetailRepository = voucherDetailRepository;
     _unitOfWork = unitOfWork;
 }
 public override void SetRepositories()
 {
     _Service = new VoucherService((U, C, A) =>
                                   ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, C, A));
     _Reposetory = new VoucherRepository(_MasterRepo, _Service);
 }
示例#26
0
 public VoucherQueries(IVoucherRepository voucherRepository)
 {
     _voucherRepository = voucherRepository;
 }
示例#27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TourController" /> class.
 /// </summary>
 /// <param name="tourRepository">The tour repository.</param>
 /// <param name="localRepository">The local repository.</param>
 /// <param name="voucherRepository">The voucher repository.</param>
 public TourController(ITourRepository tourRepository, ILocationRepository localRepository, IVoucherRepository voucherRepository)
 {
     this.tourRepository = tourRepository;
     this.localRepository = localRepository;
     this.voucherRepository = voucherRepository;
 }
 public static void Initialise(TestContext context)
 {
     var configService = new Mock<IConfigurationService>();
     configService.Setup(x => x.GetConfiguration()).Returns(new CustomerPortalSection());
     _sut=new VoucherRepository(configService.Object);
 }
示例#29
0
 public VoucherBusiness(IVoucherRepository voucher, IUnitOfWork unitOfWork)
 {
     _voucher    = voucher;
     _unitOfWork = unitOfWork;
 }
示例#30
0
 public VoucherService(IVoucherRepository voucherRepository)
 {
     repository = voucherRepository;
 }
 public VoucherController(IVoucherRepository voucherRepository)
 {
     _voucherRepository = voucherRepository;
 }
示例#32
0
 public ClaimedVoucherService(IClaimedVoucherRepository claimedRepo, IVoucherRepository vouRepo)
 {
     _claimedRepo = claimedRepo;
     _vouRepo     = vouRepo;
 }
 public VouchersController(IVoucherRepository voucherRepository)
 {
     _voucherRepository = voucherRepository;
 }
示例#34
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VoucherController"/> class.
 /// </summary>
 /// <param name="repo">The repo.</param>
 public VoucherController(IVoucherRepository repo)
 {
     _repo = repo;
 }
示例#35
0
 public VoucherCodeApplier(IVoucherRepository voucherRepository, ISubscriptionRepository subscriptionRepository, VoucherConnector storeConnector)
 {
     VoucherRepository      = voucherRepository;
     SubscriptionRepository = subscriptionRepository;
     StoreConnector         = storeConnector;
 }
 public VoucherQueries(IVoucherRepository repository)
 {
     _repository = repository;
 }
示例#37
0
 public DocumentumContext(IDataObjectRepository dataObjects, IVoucherRepository vouchers, IDishonourLetterRepository letters)
 {
     DataObjects = dataObjects;
     Vouchers = vouchers;
     DishonourLetters = letters;
 }
示例#38
0
 public VoucherConnector(IVoucherRepository repository)
 {
     Repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
示例#39
0
 public PedidoCommandHandler(IVoucherRepository voucherRepository,
                             IPedidoRepository pedidoRepository)
 {
     _voucherRepository = voucherRepository;
     _pedidoRepository  = pedidoRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VoucherTasks"/> class.
 /// </summary>
 /// <param name="voucherRepository">The voucher repository.</param>
 public VoucherTasks(IVoucherRepository voucherRepository)
 {
     this.voucherRepository = voucherRepository;
 }
示例#41
0
 public VoucherService(IVoucherRepository voucherRepository, IMapper mapper)
 {
     _voucherRepository = voucherRepository;
     _mapper            = mapper;
 }
示例#42
0
 public VoucherController(IVoucherRepository currencyRepository)
 {
     _VoucherRepository = currencyRepository;
 }