예제 #1
0
 public TaxiHailNetworkHelper(IServerSettings serverSettings, ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient, ICommandBus commandBus, ILogger logger)
 {
     _serverSettings = serverSettings;
     _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
     _commandBus = commandBus;
     _logger     = logger;
 }
예제 #2
0
 public IBSServiceProvider(IServerSettings serverSettings, ILogger logger,
                           ITaxiHailNetworkServiceClient taxiHailNetworkService)
 {
     _serverSettings         = serverSettings;
     _logger                 = logger;
     _taxiHailNetworkService = taxiHailNetworkService;
 }
예제 #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);
        }
예제 #4
0
 public DirectionsService(IDirections client, IServerSettings serverSettings, IOrderDao orderDao, VehicleService vehicleService, ILogger logger, ICommandBus commandBus, ITaxiHailNetworkServiceClient networkServiceClient)
 {
     _client               = client;
     _serverSettings       = serverSettings;
     _orderDao             = orderDao;
     _vehicleService       = vehicleService;
     _logger               = logger;
     _commandBus           = commandBus;
     _networkServiceClient = networkServiceClient;
 }
예제 #5
0
 public ServerStatusService(
     IServerSettings serverSettings,
     IIBSServiceProvider ibsProvider,
     ILogger logger,
     ITaxiHailNetworkServiceClient networkService,
     IOrderStatusUpdateDao statusUpdaterDao)
 {
     _serverSettings   = serverSettings;
     _ibsProvider      = ibsProvider;
     _logger           = logger;
     _networkService   = networkService;
     _statusUpdaterDao = statusUpdaterDao;
 }
예제 #6
0
 // GET: AdminTH/TaxiHailNetwork
 public TaxiHailNetworkController(ICacheClient cache,
                                  IServerSettings serverSettings,
                                  ITaxiHailNetworkServiceClient taxiHailNetworkService,
                                  ConfigurationsService configurationsService,
                                  IFeesDao feesDao,
                                  ICommandBus commandBus)
     : base(cache, serverSettings)
 {
     _serverSettings         = serverSettings;
     _taxiHailNetworkService = taxiHailNetworkService;
     _configurationsService  = configurationsService;
     _feesDao    = feesDao;
     _commandBus = commandBus;
 }
예제 #7
0
 public OrderDispatchCompanyManager(
     ICommandBus commandBus,
     Func <BookingDbContext> contextFactory,
     IIBSServiceProvider ibsServiceProvider,
     ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
     IConfigurationDao configurationDao,
     ILogger logger,
     IServerSettings serverSettings)
 {
     _contextFactory               = contextFactory;
     _ibsServiceProvider           = ibsServiceProvider;
     _commandBus                   = commandBus;
     _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
     _configurationDao             = configurationDao;
     _logger         = logger;
     _serverSettings = serverSettings;
 }
예제 #8
0
 public VehicleService(IIBSServiceProvider ibsServiceProvider,
                       IVehicleTypeDao dao,
                       ICommandBus commandBus,
                       ReferenceDataService referenceDataService,
                       ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                       IServerSettings serverSettings,
                       ILogger logger,
                       IOrderDao orderDao)
 {
     _serverSettings     = serverSettings;
     _ibsServiceProvider = ibsServiceProvider;
     _dao                          = dao;
     _commandBus                   = commandBus;
     _referenceDataService         = referenceDataService;
     _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
     _logger                       = logger;
     _orderDao                     = orderDao;
 }
예제 #9
0
 public PaymentSettingsService(ICommandBus commandBus,
                               IConfigurationDao configurationDao,
                               ILogger logger,
                               IServerSettings serverSettings,
                               IPayPalServiceFactory paylServiceFactory,
                               ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                               IConfigurationChangeService configurationChangeService,
                               ICryptographyService cryptographyService)
 {
     _logger                       = logger;
     _serverSettings               = serverSettings;
     _paylServiceFactory           = paylServiceFactory;
     _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
     _configurationChangeService   = configurationChangeService;
     _commandBus                   = commandBus;
     _configurationDao             = configurationDao;
     _cryptographyService          = cryptographyService;
 }
예제 #10
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);
        }
예제 #11
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);
        }
예제 #12
0
 public NetworkRoamingService(ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient, IServerSettings serverSettings, ICryptographyService cryptographyService)
 {
     _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
     _serverSettings      = serverSettings;
     _cryptographyService = cryptographyService;
 }