Esempio n. 1
0
        //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;
 }
Esempio n. 4
0
 public GetBookingQueryHandlerTests(QueryTestFixture fixture)
 {
     _repo = fixture.repo;
 }
Esempio n. 5
0
 public BookingManager(IBookingRespository bookingRespository)
 {
     _bookingRespository = bookingRespository;
 }
Esempio n. 6
0
 public BookingController(IBookingRespository repository)
 {
     _respository = repository;
 }
Esempio n. 7
0
 public UpdateBookingHandler(IBookingRespository context)
 {
     _bookingContext = context;
 }
 public CreateBookingCommandHandlerTests(CommandTestBase fixture)
 {
     _repo = fixture.repo;
 }
Esempio n. 9
0
 public OrderStatusChangedIntegrationEventHandler(IBookingRespository bookingContext, TelemetryClient telemetry)
 {
     _bookingContext = bookingContext;
     this.telemetry  = telemetry;
 }
Esempio n. 10
0
 public PaymentProcessedIntegrationEventHandler(IBookingRespository bookingContext, TelemetryClient telemetry)
 {
     _bookingContext = bookingContext;
     this.telemetry  = telemetry;
 }