//private readonly IBookingIntegrationEventService _bookingIntegrationEventService; public CreateBookingCommandHandler(IBookingRespository context, IEventBus eventBus) { _bookingContext = context; _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); // _bookingIntegrationEventService = bookingIntegrationEventService ?? throw new ArgumentNullException(nameof(bookingIntegrationEventService)); }
public CommandTestBase() { var options = new DbContextOptionsBuilder <BookingDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; Context = new BookingDbContext(options); repo = BookingContextFactory.Create(Context); }
public GetBookingQueryHandler(IBookingRespository context) { _context = context; }
public GetBookingQueryHandlerTests(QueryTestFixture fixture) { _repo = fixture.repo; }
public BookingManager(IBookingRespository bookingRespository) { _bookingRespository = bookingRespository; }
public BookingController(IBookingRespository repository) { _respository = repository; }
public UpdateBookingHandler(IBookingRespository context) { _bookingContext = context; }
public CreateBookingCommandHandlerTests(CommandTestBase fixture) { _repo = fixture.repo; }
public OrderStatusChangedIntegrationEventHandler(IBookingRespository bookingContext, TelemetryClient telemetry) { _bookingContext = bookingContext; this.telemetry = telemetry; }
public PaymentProcessedIntegrationEventHandler(IBookingRespository bookingContext, TelemetryClient telemetry) { _bookingContext = bookingContext; this.telemetry = telemetry; }