public ReservationForm(int id_movieShowTime) { InitializeComponent(); _reservationFormService = new ReservationFormService(); _showTimeRepository = new ShowTimeRepository(); MovieShowTime = _showTimeRepository.GetShowTime(id_movieShowTime); }
public ShowTimeService(MovieRepository movieRepository, ShowTimeRepository showTimeRepository, DateTimeUtils dateTimeUtils, RoomService roomService) { this.repository = showTimeRepository; this.roomService = roomService; this.movieRepository = movieRepository; this.dateTimeUtils = dateTimeUtils; }
public MovieForm(int id_movie) { InitializeComponent(); _showTimeRepository = new ShowTimeRepository(); _moviesRepository = new MoviesRepository(); MovieShowTimesList = _showTimeRepository.GetAllShowTimesForMovie(id_movie); MovieDetails = _moviesRepository.GetMovie(id_movie); }
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); }
public TheaterService(TheaterRepository TheaterRepository, ShowTimeRepository showTimeRepository) { this.repository = TheaterRepository; this.showTimeRepository = showTimeRepository; }
public ReservationFormService() { _showTimeRepository = new ShowTimeRepository(); _theaterRoomsRepository = new TheaterRoomsRepository(); }
public TicketService(TicketRepository ticketRepository, ShowTimeRepository showTimeRepository) { this.repository = ticketRepository; this.showTimeRepository = showTimeRepository; }