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; }
public InfoSearchEngine(IBookingContext context) { _context = context; Info = new Info(); }
public BookingService(ShowingService showingService, IBookingContext bookingContext) { _showingService = showingService; _bookingContext = bookingContext; }
public HomeRepository(IBookingContext dbContext) { _dbContext = dbContext; }
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; }
public TicketRepository(IBookingContext context) { _context = context; }
public OrderRepository(IBookingContext context) { _context = context; }