Beispiel #1
0
        public AccountManagementController(ICacheClient cache,
                                           IServerSettings serverSettings,
                                           IAccountDao accountDao,
                                           IAccountNoteService accountNoteService,
                                           ICreditCardDao creditCardDao,
                                           ICommandBus commandBus,
                                           IOrderDao orderDao,
                                           IPromotionDao promoDao,
                                           IPaymentService paymentService,
                                           INotificationService notificationService,
                                           BookingSettingsService bookingSettingsService,
                                           ConfirmAccountService confirmAccountService,
                                           ExportDataService exportDataService)
            : base(cache, serverSettings)
        {
            _accountDao             = accountDao;
            _accountNoteService     = accountNoteService;
            _creditCardDao          = creditCardDao;
            _bookingSettingsService = bookingSettingsService;
            _commandBus             = commandBus;
            _serverSettings         = serverSettings;
            _orderDao = orderDao;
            _promoDao = promoDao;
            _confirmAccountService = confirmAccountService;
            _exportDataService     = exportDataService;
            _paymentService        = paymentService;
            _notificationService   = notificationService;

            _resources = new Resources(serverSettings);
        }
Beispiel #2
0
 public CreditCardService(ICreditCardDao dao, ICommandBus commandBus, IOrderDao orderDao, IServerSettings serverSettings)
 {
     _orderDao       = orderDao;
     _serverSettings = serverSettings;
     _dao            = dao;
     _commandBus     = commandBus;
 }
 public SendReceiptService(
     ICommandBus commandBus,
     IIBSServiceProvider ibsServiceProvider,
     IOrderDao orderDao,
     IOrderPaymentDao orderPaymentDao,
     ICreditCardDao creditCardDao,
     IAccountDao accountDao,
     IPromotionDao promotionDao,
     IReportDao reportDao,
     IServerSettings serverSettings,
     IGeocoding geocoding,
     ILogger logger)
 {
     _serverSettings     = serverSettings;
     _logger             = logger;
     _ibsServiceProvider = ibsServiceProvider;
     _orderDao           = orderDao;
     _orderPaymentDao    = orderPaymentDao;
     _accountDao         = accountDao;
     _promotionDao       = promotionDao;
     _reportDao          = reportDao;
     _creditCardDao      = creditCardDao;
     _geocoding          = geocoding;
     _commandBus         = commandBus;
 }
Beispiel #4
0
        public CreateOrderService(ICommandBus commandBus,
                                  IAccountDao accountDao,
                                  IServerSettings serverSettings,
                                  ReferenceDataService referenceDataService,
                                  IIBSServiceProvider ibsServiceProvider,
                                  IRuleCalculator ruleCalculator,
                                  IAccountChargeDao accountChargeDao,
                                  ICreditCardDao creditCardDao,
                                  IOrderDao orderDao,
                                  IPromotionDao promotionDao,
                                  IEventSourcedRepository <Promotion> promoRepository,
                                  ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                                  IPaymentService paymentService,
                                  IPayPalServiceFactory payPalServiceFactory,
                                  IOrderPaymentDao orderPaymentDao,
                                  IFeesDao feesDao,
                                  ILogger logger,
                                  IIbsCreateOrderService ibsCreateOrderService)
            : base(serverSettings, commandBus, accountChargeDao, paymentService, creditCardDao,
                   ibsServiceProvider, promotionDao, promoRepository, orderPaymentDao, accountDao,
                   payPalServiceFactory, logger, taxiHailNetworkServiceClient, ruleCalculator,
                   feesDao, referenceDataService, orderDao)
        {
            _commandBus                   = commandBus;
            _accountDao                   = accountDao;
            _referenceDataService         = referenceDataService;
            _serverSettings               = serverSettings;
            _orderDao                     = orderDao;
            _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
            _logger = logger;
            _ibsCreateOrderService = ibsCreateOrderService;
            _resources             = new Resources.Resources(_serverSettings);

            _taxiHailNetworkHelper = new TaxiHailNetworkHelper(_serverSettings, _taxiHailNetworkServiceClient, _commandBus, _logger);
        }
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel         = TestManager.ConfigureNInjectKernel();
     userProfileDao = kernel.Get <IUserProfileDao>();
     creditCardDao  = kernel.Get <ICreditCardDao>();
     deliveryDao    = kernel.Get <IDeliveryDao>();
 }
Beispiel #6
0
 public CmtPaymentPairingService(IOrderDao orderDao, IAccountDao accountDao, ICreditCardDao creditCardDao, ILogger logger, ICommandBus commandBus, IServerSettings serverSettings)
 {
     _orderDao       = orderDao;
     _accountDao     = accountDao;
     _creditCardDao  = creditCardDao;
     _logger         = logger;
     _commandBus     = commandBus;
     _serverSettings = serverSettings;
 }
        public static void MyClassInitialize(TestContext testContext)
        {
            kernel = TestManager.ConfigureNInjectKernel();

            shoppingService = kernel.Get <IShoppingService>();
            userProfileDao  = kernel.Get <IUserProfileDao>();
            creditCardDao   = kernel.Get <ICreditCardDao>();
            categoryDao     = kernel.Get <ICategoryDao>();
            productDao      = kernel.Get <IProductDao>();
        }
Beispiel #8
0
 public PaymentService(IPayPalServiceFactory payPalServiceFactory,
                       IAccountDao accountDao,
                       IOrderDao orderDao,
                       ICreditCardDao creditCardDao,
                       IServerSettings serverSettings,
                       IUnityContainer container)
 {
     _payPalServiceFactory = payPalServiceFactory;
     _accountDao           = accountDao;
     _orderDao             = orderDao;
     _creditCardDao        = creditCardDao;
     _serverSettings       = serverSettings;
     _container            = container;
 }
 public OrderPaymentManager(IOrderDao dao, IOrderPaymentDao paymentDao, IAccountDao accountDao, IOrderDao orderDao, ICommandBus commandBus,
                            ICreditCardDao creditCardDao, IIbsOrderService ibs, IServerSettings serverSettings, IPaymentService paymentService, IFeeService feeService, ILogger logger)
 {
     _accountDao     = accountDao;
     _orderDao       = orderDao;
     _commandBus     = commandBus;
     _dao            = dao;
     _paymentDao     = paymentDao;
     _creditCardDao  = creditCardDao;
     _ibs            = ibs;
     _serverSettings = serverSettings;
     _paymentService = paymentService;
     _feeService     = feeService;
     _logger         = logger;
 }
Beispiel #10
0
 public CmtPaymentService(ICommandBus commandBus,
                          IOrderDao orderDao,
                          ILogger logger,
                          IAccountDao accountDao,
                          IOrderPaymentDao paymentDao,
                          ServerPaymentSettings serverPaymentSettings,
                          IPairingService pairingService,
                          ICreditCardDao creditCardDao)
 {
     _commandBus            = commandBus;
     _orderDao              = orderDao;
     _logger                = logger;
     _accountDao            = accountDao;
     _paymentDao            = paymentDao;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
 }
Beispiel #11
0
        public BraintreePaymentService(ICommandBus commandBus,
                                       ILogger logger,
                                       IOrderPaymentDao paymentDao,
                                       IOrderDao orderDao,
                                       IServerSettings serverSettings,
                                       ServerPaymentSettings serverPaymentSettings,
                                       IPairingService pairingService,
                                       ICreditCardDao creditCardDao)
        {
            _commandBus     = commandBus;
            _logger         = logger;
            _paymentDao     = paymentDao;
            _orderDao       = orderDao;
            _serverSettings = serverSettings;
            _pairingService = pairingService;
            _creditCardDao  = creditCardDao;

            BraintreeGateway = GetBraintreeGateway(serverPaymentSettings.BraintreeServerSettings);
        }
Beispiel #12
0
 public OrderPairingManager(INotificationService notificationService,
                            IOrderDao orderDao,
                            ICreditCardDao creditCardDao,
                            IAccountDao accountDao,
                            IPaymentService paymentFacadeService,
                            IServerSettings serverSettings,
                            ILogger logger,
                            Func <BookingDbContext> contextFactory)
 {
     _notificationService  = notificationService;
     _orderDao             = orderDao;
     _creditCardDao        = creditCardDao;
     _accountDao           = accountDao;
     _paymentFacadeService = paymentFacadeService;
     _serverSettings       = serverSettings;
     _logger         = logger;
     _contextFactory = contextFactory;
     _resources      = new Resources.Resources(serverSettings);
 }
 public MonerisPaymentService(ICommandBus commandBus,
                              ILogger logger,
                              IOrderPaymentDao paymentDao,
                              IServerSettings serverSettings,
                              ServerPaymentSettings serverPaymentSettings,
                              IPairingService pairingService,
                              ICreditCardDao creditCardDao,
                              IOrderDao orderDao)
 {
     _commandBus            = commandBus;
     _logger                = logger;
     _paymentDao            = paymentDao;
     _serverSettings        = serverSettings;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
     _orderDao              = orderDao;
     MonerisHttpRequestWrapper.SetLogger(_logger);
 }
Beispiel #14
0
 public MailSender(Func <BookingDbContext> contextFactory,
                   ICommandBus commandBus,
                   ICreditCardDao creditCardDao,
                   IPromotionDao promotionDao,
                   IOrderDao orderDao,
                   IAccountDao accountDao,
                   INotificationService notificationService,
                   IServerSettings serverSettings,
                   ILogger logger)
 {
     _contextFactory      = contextFactory;
     _commandBus          = commandBus;
     _creditCardDao       = creditCardDao;
     _orderDao            = orderDao;
     _promotionDao        = promotionDao;
     _accountDao          = accountDao;
     _notificationService = notificationService;
     _serverSettings      = serverSettings;
     _logger = logger;
 }
Beispiel #15
0
        internal BaseCreateOrderService(IServerSettings serverSettings,
                                        ICommandBus commandBus,
                                        IAccountChargeDao accountChargeDao,
                                        IPaymentService paymentService,
                                        ICreditCardDao creditCardDao,
                                        IIBSServiceProvider ibsServiceProvider,
                                        IPromotionDao promotionDao,
                                        IEventSourcedRepository <Promotion> promoRepository,
                                        IOrderPaymentDao orderPaymentDao,
                                        IAccountDao accountDao,
                                        IPayPalServiceFactory payPalServiceFactory,
                                        ILogger logger,
                                        ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                                        IRuleCalculator ruleCalculator,
                                        IFeesDao feesDao,
                                        ReferenceDataService referenceDataService,
                                        IOrderDao orderDao)
        {
            _serverSettings               = serverSettings;
            _commandBus                   = commandBus;
            _accountChargeDao             = accountChargeDao;
            _paymentService               = paymentService;
            _creditCardDao                = creditCardDao;
            _ibsServiceProvider           = ibsServiceProvider;
            _promotionDao                 = promotionDao;
            _promoRepository              = promoRepository;
            _accountDao                   = accountDao;
            _logger                       = logger;
            _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
            _ruleCalculator               = ruleCalculator;
            _feesDao                      = feesDao;
            _referenceDataService         = referenceDataService;
            _orderDao                     = orderDao;

            _resources             = new Resources.Resources(_serverSettings);
            _taxiHailNetworkHelper = new TaxiHailNetworkHelper(_serverSettings, _taxiHailNetworkServiceClient, _commandBus, _logger);

            PaymentHelper = new CreateOrderPaymentHelper(serverSettings, commandBus, paymentService, orderPaymentDao, payPalServiceFactory);
        }
        public ManualRidelinqOrderService(
            ICommandBus commandBus,
            IOrderDao orderDao,
            IAccountDao accountDao,
            ICreditCardDao creditCardDao,
            IServerSettings serverSettings,
            ILogger logger,
            INotificationService notificationService)
        {
            _commandBus          = commandBus;
            _orderDao            = orderDao;
            _accountDao          = accountDao;
            _creditCardDao       = creditCardDao;
            _serverSettings      = serverSettings;
            _logger              = logger;
            _notificationService = notificationService;

            // Since CMT will handle the payment on their ends. We do not need to know the actual company of the cab from wich we do the manual pairing.
            _cmtMobileServiceClient   = new CmtMobileServiceClient(_serverSettings.GetPaymentSettings().CmtPaymentSettings, null, null, null);
            _cmtTripInfoServiceHelper = new CmtTripInfoServiceHelper(_cmtMobileServiceClient, logger);

            _resources = new Resources.Resources(_serverSettings);
        }
Beispiel #17
0
 public CreditCardBase(ICreditCardDao creditCardDao)
 {
     _creditCardDao = creditCardDao;
 }
Beispiel #18
0
 public CurrentAccountService(IAccountDao accountDao, ICreditCardDao creditCardDao, IServerSettings serverSettings)
 {
     _creditCardDao  = creditCardDao;
     _accountDao     = accountDao;
     _serverSettings = serverSettings;
 }
Beispiel #19
0
 /// <summary>
 ///     Singleton implementation
 /// </summary>
 /// <returns> an instance of a credit updatedCard data access object </returns>
 public static ICreditCardDao GetInstance()
 {
     return(_instance ?? (_instance = new CreditCardDao()));
 }