public IbsFareService(IIBSServiceProvider ibsServiceProvider, IServerSettings serverSettings, IVehicleTypeDao vehicleTypeDao)
 {
     _ibsServiceProvider = ibsServiceProvider;
     _serverSettings     = serverSettings;
     _vehicleTypeDao     = vehicleTypeDao;
     _resources          = new Resources.Resources(serverSettings);
 }
Example #2
0
        public IbsOrderService(IIBSServiceProvider ibsServiceProvider, IServerSettings serverSettings, ILogger logger)
        {
            _ibsServiceProvider = ibsServiceProvider;
            _logger = logger;

            _resources = new Resources.Resources(serverSettings);
        }
Example #3
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 PairingService(ICommandBus commandBus, IIbsOrderService ibs, IOrderDao orderDao, IServerSettings serverSettings)
        {
            _commandBus = commandBus;
            _ibs        = ibs;
            _orderDao   = orderDao;

            _resources = new Resources.Resources(serverSettings);
        }
Example #5
0
 public RegisterAccountService(ICommandBus commandBus, IAccountDao accountDao, IServerSettings serverSettings, IBlackListEntryService blackListEntryService)
 {
     _commandBus            = commandBus;
     _accountDao            = accountDao;
     _serverSettings        = serverSettings;
     _blackListEntryService = blackListEntryService;
     _resources             = new Resources.Resources(serverSettings);
 }
 public BookingSettingsService(IAccountChargeDao accountChargeDao, IAccountDao accountDao, ICommandBus commandBus, IIBSServiceProvider ibsServiceProvider, IServerSettings serverSettings)
 {
     _accountChargeDao   = accountChargeDao;
     _accountDao         = accountDao;
     _commandBus         = commandBus;
     _ibsServiceProvider = ibsServiceProvider;
     _serverSettings     = serverSettings;
     _resources          = new Resources.Resources(serverSettings);
 }
Example #7
0
 public OrderGenerator(Func <BookingDbContext> contextFactory,
                       ILogger logger,
                       IServerSettings serverSettings)
 {
     _contextFactory = contextFactory;
     _logger         = logger;
     _serverSettings = serverSettings;
     _resources      = new Resources.Resources(serverSettings);
 }
Example #8
0
 public ConfirmAccountService(ICommandBus commandBus, IAccountDao accountDao, ITemplateService templateService, IBlackListEntryService blackListEntryService,
                              IServerSettings serverSettings)
 {
     _accountDao            = accountDao;
     _templateService       = templateService;
     _serverSettings        = serverSettings;
     _commandBus            = commandBus;
     _blackListEntryService = blackListEntryService;
     _resources             = new Resources.Resources(serverSettings);
 }
Example #9
0
 public PayPalCheckoutService(
     ICommandBus commandBus,
     ILogger logger,
     IOrderDao orderDao,
     IAccountDao accountDao,
     IPayPalServiceFactory payPalServiceFactory,
     IServerSettings serverSettings)
 {
     _commandBus           = commandBus;
     _logger               = logger;
     _orderDao             = orderDao;
     _accountDao           = accountDao;
     _payPalServiceFactory = payPalServiceFactory;
     _serverSettings       = serverSettings;
     _resources            = new Resources.Resources(_serverSettings);
 }
        public OrderCreationManager(
            Func <BookingDbContext> contextFactory,
            ICommandBus commandBus,
            IServerSettings serverSettings,
            ILogger logger,
            IOrderDao orderDao,
            IAccountDao accountDao,
            IIbsCreateOrderService ibsCreateOrderService)
        {
            _contextFactory        = contextFactory;
            _commandBus            = commandBus;
            _logger                = logger;
            _orderDao              = orderDao;
            _accountDao            = accountDao;
            _ibsCreateOrderService = ibsCreateOrderService;

            _resources = new Resources.Resources(serverSettings);
        }
Example #11
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 PayPalService(IServerSettings serverSettings,
                             ServerPaymentSettings serverPaymentSettings,
                             ICommandBus commandBus,
                             IAccountDao accountDao,
                             IOrderDao orderDao,
                             ILogger logger,
                             IPairingService pairingService,
                             IOrderPaymentDao paymentDao) : base(serverPaymentSettings, accountDao)
        {
            _serverSettings        = serverSettings;
            _serverPaymentSettings = serverPaymentSettings;
            _commandBus            = commandBus;
            _accountDao            = accountDao;
            _orderDao       = orderDao;
            _logger         = logger;
            _pairingService = pairingService;
            _paymentDao     = paymentDao;

            _resources = new Resources.Resources(serverSettings);
        }
Example #13
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);
        }
Example #14
0
        public CancelOrderService(ICommandBus commandBus,
                                  IIBSServiceProvider ibsServiceProvider,
                                  IOrderDao orderDao,
                                  IAccountDao accountDao,
                                  IUpdateOrderStatusJob updateOrderStatusJob,
                                  IServerSettings serverSettings,
                                  ITaxiHailNetworkServiceClient networkServiceClient,
                                  IIbsCreateOrderService ibsCreateOrderService,
                                  ILogger logger)
        {
            _ibsServiceProvider    = ibsServiceProvider;
            _orderDao              = orderDao;
            _accountDao            = accountDao;
            _updateOrderStatusJob  = updateOrderStatusJob;
            _commandBus            = commandBus;
            _serverSettings        = serverSettings;
            _networkServiceClient  = networkServiceClient;
            _ibsCreateOrderService = ibsCreateOrderService;
            _logger = logger;

            _resources = new Resources.Resources(serverSettings);
        }
        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);
        }
Example #16
0
 public CreditCardPaymentDetailsGenerator(Func <BookingDbContext> contextFactory, IServerSettings serverSettings)
 {
     _contextFactory = contextFactory;
     _resources      = new Resources.Resources(serverSettings);
 }
Example #17
0
 public TemplateService(IServerSettings serverSettings)
 {
     _resources = new Resources.Resources(serverSettings);
 }
        public OrderStatusHelper(IOrderDao orderDao, IServerSettings serverSettings)
        {
            _orderDao = orderDao;

            _resources = new Resources.Resources(serverSettings);
        }