public MakeBookingHandler(
     IBus bus,
     IBookingRepository bookingRepository,
     IBookingTypeRepository bookingTypeRepository)
 {
     _bus = bus;
     _bookingRepository     = bookingRepository;
     _bookingTypeRepository = bookingTypeRepository;
     DomainEvents.Register <BookingMadeEvent>(BookingMade);
     DomainEvents.Register <MakeBookingInvalidatedEvent>(MakeBookingInvalidated);
 }
Beispiel #2
0
 static BookingTypeService()
 {
     repository = new BookingTypeRepository();
 }