예제 #1
0
 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;
 }
예제 #3
0
 public Calculator(IBookingContext context)
 {
     _context = context;
 }
예제 #4
0
 public InfoSearchEngine(IBookingContext context)
 {
     _context = context;
     Info     = new Info();
 }
예제 #5
0
 public BookingService(ShowingService showingService, IBookingContext bookingContext)
 {
     _showingService = showingService;
     _bookingContext = bookingContext;
 }
예제 #6
0
 public HomeRepository(IBookingContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #7
0
 public RoomRepository(IBookingContext bookingContext)
 {
     _bookingContext = bookingContext;
 }
 public BookingRepository(IBookingContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public ReservedSeatRepository(IBookingContext context)
 {
     _context = context;
 }
예제 #10
0
 public PeopleRepository(IBookingContext context)
 {
     _context = context;
 }
예제 #11
0
 public TicketRepository(IBookingContext context)
 {
     _context = context;
 }
예제 #12
0
 public OrderRepository(IBookingContext context)
 {
     _context = context;
 }