Exemple #1
0
 public BookingCreditCardPaymentService(ICreditCardPaymentProcessingService creditCardPaymentProcessingService,
                                        ILogger <BookingCreditCardPaymentService> logger,
                                        IDateTimeProvider dateTimeProvider,
                                        IBookingInfoService bookingInfoService,
                                        IBookingNotificationService bookingNotificationService,
                                        IBookingPaymentCallbackService paymentCallbackService)
 {
     _creditCardPaymentProcessingService = creditCardPaymentProcessingService;
     _logger                     = logger;
     _dateTimeProvider           = dateTimeProvider;
     _bookingInfoService         = bookingInfoService;
     _bookingNotificationService = bookingNotificationService;
     _paymentCallbackService     = paymentCallbackService;
 }
Exemple #2
0
 public BookingsProcessingService(IBookingAccountPaymentService accountPaymentService,
                                  IBookingCreditCardPaymentService creditCardPaymentService,
                                  ISupplierBookingManagementService supplierBookingManagementService,
                                  IBookingNotificationService bookingNotificationService,
                                  IBookingReportsService reportsService,
                                  EdoContext context,
                                  IBookingRecordsUpdater bookingRecordsUpdater,
                                  IDateTimeProvider dateTimeProvider)
 {
     _accountPaymentService            = accountPaymentService;
     _creditCardPaymentService         = creditCardPaymentService;
     _supplierBookingManagementService = supplierBookingManagementService;
     _bookingNotificationService       = bookingNotificationService;
     _reportsService        = reportsService;
     _context               = context;
     _bookingRecordsUpdater = bookingRecordsUpdater;
     _dateTimeProvider      = dateTimeProvider;
 }
 public BankCreditCardBookingFlow(IBookingRequestStorage requestStorage, IBookingNotificationService bookingNotificationService,
                                  IBookingRequestExecutor requestExecutor, IBookingEvaluationStorage evaluationStorage,
                                  IBookingCreditCardPaymentService creditCardPaymentService, IBookingDocumentsService documentsService,
                                  IBookingInfoService bookingInfoService, IDateTimeProvider dateTimeProvider, IBookingRegistrationService registrationService,
                                  IBookingConfirmationService bookingConfirmationService, ILogger <BankCreditCardBookingFlow> logger)
 {
     _requestStorage             = requestStorage;
     _bookingNotificationService = bookingNotificationService;
     _requestExecutor            = requestExecutor;
     _evaluationStorage          = evaluationStorage;
     _creditCardPaymentService   = creditCardPaymentService;
     _documentsService           = documentsService;
     _bookingInfoService         = bookingInfoService;
     _dateTimeProvider           = dateTimeProvider;
     _registrationService        = registrationService;
     _bookingConfirmationService = bookingConfirmationService;
     _logger = logger;
 }
 public BookingRecordsUpdater(IDateTimeProvider dateTimeProvider, IBookingInfoService infoService,
                              IBookingNotificationService bookingNotificationService, IBookingMoneyReturnService moneyReturnService,
                              IBookingDocumentsMailingService documentsMailingService, ISupplierOrderService supplierOrderService,
                              INotificationService notificationService, IBookingChangeLogService bookingChangeLogService,
                              IBookingAnalyticsService bookingAnalyticsService, EdoContext context, ILogger <BookingRecordsUpdater> logger)
 {
     _dateTimeProvider           = dateTimeProvider;
     _infoService                = infoService;
     _bookingNotificationService = bookingNotificationService;
     _moneyReturnService         = moneyReturnService;
     _documentsMailingService    = documentsMailingService;
     _supplierOrderService       = supplierOrderService;
     _notificationsService       = notificationService;
     _context = context;
     _logger  = logger;
     _bookingChangeLogService = bookingChangeLogService;
     _bookingAnalyticsService = bookingAnalyticsService;
 }
Exemple #5
0
        private BookingsProcessingService CreateProcessingService(IBookingNotificationService notificationService)
        {
            var context = MockEdoContextFactory.Create();

            context.Setup(c => c.Bookings)
            .Returns(DbSetMockProvider.GetDbSetMock(Bookings));

            context.Setup(c => c.Agents)
            .Returns(DbSetMockProvider.GetDbSetMock(new[] { Agent }));

            var service = new BookingsProcessingService(Mock.Of <IBookingAccountPaymentService>(),
                                                        Mock.Of <IBookingCreditCardPaymentService>(),
                                                        Mock.Of <ISupplierBookingManagementService>(),
                                                        notificationService,
                                                        Mock.Of <IBookingReportsService>(),
                                                        context.Object,
                                                        Mock.Of <IBookingRecordsUpdater>(),
                                                        Mock.Of <IDateTimeProvider>());

            return(service);
        }