public AgentBookingManagementService(ISupplierBookingManagementService managementService, IBookingRecordManager recordManager, IBookingStatusRefreshService statusRefreshService) { _managementService = managementService; _recordManager = recordManager; _statusRefreshService = statusRefreshService; }
public AdministratorBookingManagementService(IBookingRecordManager recordManager, ISupplierBookingManagementService managementService, IDateTimeProvider dateTimeProvider, IBookingRecordsUpdater recordsUpdater) { _recordManager = recordManager; _managementService = managementService; _dateTimeProvider = dateTimeProvider; _recordsUpdater = recordsUpdater; }
public BookingStatusRefreshService(IDistributedFlow flow, IDateTimeProvider dateTimeProvider, ISupplierBookingManagementService supplierBookingManagement, EdoContext context, IOptionsMonitor <BookingStatusUpdateOptions> statusUpdateOptionsMonitor) { _flow = flow; _dateTimeProvider = dateTimeProvider; _supplierBookingManagement = supplierBookingManagement; _context = context; _statusUpdateOptionsMonitor = statusUpdateOptionsMonitor; }
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; }
private BookingsProcessingService CreateProcessingService(ISupplierBookingManagementService supplierBookingManagementService) { var context = MockEdoContextFactory.Create(); context.Setup(c => c.Bookings) .Returns(DbSetMockProvider.GetDbSetMock(Bookings)); var service = new BookingsProcessingService(Mock.Of <IBookingAccountPaymentService>(), Mock.Of <IBookingCreditCardPaymentService>(), supplierBookingManagementService, Mock.Of <IBookingNotificationService>(), Mock.Of <IBookingReportsService>(), context.Object, Mock.Of <IBookingRecordsUpdater>(), Mock.Of <IDateTimeProvider>()); return(service); }
private static BookingStatusRefreshService CreateBookingStatusRefreshService(IDistributedFlow flow, ISupplierBookingManagementService supplierService, List <Suppliers>?disabledSuppliers = null) { var context = CreateContext(); var dateTimeProvider = new DateTimeProviderMock(DateTimeNow); var monitor = Mock.Of <IOptionsMonitor <BookingStatusUpdateOptions> >(_ => _.CurrentValue == new BookingStatusUpdateOptions { DisabledSuppliers = disabledSuppliers ?? new List <Suppliers>() }); return(new BookingStatusRefreshService( flow, dateTimeProvider, supplierService, context, monitor )); }