public MeetingRoomsController(IBookingContext context)
 {
     db = context;
 }
 //If we wanted to to IoC or Unit Testing, etc. Maybe having it as interface is an overkill for such simple project.
 public BookingPersistenceService(IBookingContext db)
 {
     _dbContext = db;
 }
 public Calculator(IBookingContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public InfoSearchEngine(IBookingContext context)
 {
     _context = context;
     Info     = new Info();
 }
Beispiel #5
0
 public BookingService(ShowingService showingService, IBookingContext bookingContext)
 {
     _showingService = showingService;
     _bookingContext = bookingContext;
 }
Beispiel #6
0
 public HomeRepository(IBookingContext dbContext)
 {
     _dbContext = dbContext;
 }
Beispiel #7
0
 public RoomRepository(IBookingContext bookingContext)
 {
     _bookingContext = bookingContext;
 }
 public BookingRepository(IBookingContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public ReservedSeatRepository(IBookingContext context)
 {
     _context = context;
 }
 public PeopleRepository(IBookingContext context)
 {
     _context = context;
 }
Beispiel #11
0
 public TicketRepository(IBookingContext context)
 {
     _context = context;
 }
 public OrderRepository(IBookingContext context)
 {
     _context = context;
 }