Esempio n. 1
0
 public RepositoryInfrastructure(IConnectionFactory connectionFactory) : base(connectionFactory)
 {
     _rowDao         = DaoFactory.CreateRowDao();
     _rowCategoryDao = DaoFactory.CreateRowCategoryDao();
     _seatDao        = DaoFactory.CreateSeatDao();
     _cinemaHallDao  = DaoFactory.CreateCinemaHallDao();
 }
Esempio n. 2
0
 public RepositoryTicket(IConnectionFactory connectionFactory) : base(connectionFactory)
 {
     _reservationDao = DaoFactory.CreateReservationDao();
     _seatReservationDao = DaoFactory.CreateSeatReservationDao();
     _seatDao = DaoFactory.CreateSeatDao();
     _ticketDao = DaoFactory.CreateTicketDao();
     _scheduleDao = DaoFactory.CreateScheduleDao();
     _userDao = DaoFactory.CreateUserDao();
     _cinemaHallDao = DaoFactory.CreateCinemaHallDao();
 }
Esempio n. 3
0
 public RepositorySchedule(IConnectionFactory connectionFactory) : base(connectionFactory)
 {
     _scheduleDao       = DaoFactory.CreateScheduleDao();
     _cinemaHallDao     = DaoFactory.CreateCinemaHallDao();
     _movieDao          = DaoFactory.CreateMovieDao();
     MinPriceWeekday    = 7.0M;
     MaxPriceWeekday    = 12.5M;
     MinPriceWeekend    = 9.5M;
     MaxPriceWeekend    = 15.5M;
     MinSchedulesPerDay = 6;
     MaxSchedulesPerDay = 10;
 }