Example #1
0
 public ReservationForm(int id_movieShowTime)
 {
     InitializeComponent();
     _reservationFormService = new ReservationFormService();
     _showTimeRepository     = new ShowTimeRepository();
     MovieShowTime           = _showTimeRepository.GetShowTime(id_movieShowTime);
 }
Example #2
0
 public ShowTimeService(MovieRepository movieRepository, ShowTimeRepository showTimeRepository, DateTimeUtils dateTimeUtils, RoomService roomService)
 {
     this.repository      = showTimeRepository;
     this.roomService     = roomService;
     this.movieRepository = movieRepository;
     this.dateTimeUtils   = dateTimeUtils;
 }
Example #3
0
 public MovieForm(int id_movie)
 {
     InitializeComponent();
     _showTimeRepository = new ShowTimeRepository();
     _moviesRepository   = new MoviesRepository();
     MovieShowTimesList  = _showTimeRepository.GetAllShowTimesForMovie(id_movie);
     MovieDetails        = _moviesRepository.GetMovie(id_movie);
 }
Example #4
0
        public UnitOfWork(CinemaContext context)
        {
            _context = context;

            Actors          = new ActorRepository(_context);
            CinemaOwners    = new CinemaOwnerRepository(_context);
            Cinemas         = new CinemaRepository(_context);
            CinemaScreens   = new CinemaScreenRepository(_context);
            MovieCategories = new MovieCategoryRepository(_context);
            Movies          = new MovieRepository(_context);
            Producers       = new ProducerRepository(_context);
            ShowTimes       = new ShowTimeRepository(_context);
        }
Example #5
0
 public TheaterService(TheaterRepository TheaterRepository, ShowTimeRepository showTimeRepository)
 {
     this.repository         = TheaterRepository;
     this.showTimeRepository = showTimeRepository;
 }
 public ReservationFormService()
 {
     _showTimeRepository     = new ShowTimeRepository();
     _theaterRoomsRepository = new TheaterRoomsRepository();
 }
Example #7
0
 public TicketService(TicketRepository ticketRepository, ShowTimeRepository showTimeRepository)
 {
     this.repository         = ticketRepository;
     this.showTimeRepository = showTimeRepository;
 }