Ejemplo n.º 1
0
 public TheaterController()
 {
     string cnn = ConfigurationManager.ConnectionStrings["CinemaCnn"].ToString();
     var dbContext = new DatabaseContext(cnn);
     var theaterRepo = new TheaterRepository(dbContext);
     _theaterRepository = theaterRepo;
 }
Ejemplo n.º 2
0
 public MovieService(IMovieRepository movieRepository, ITheaterRepository theaterRepository,
     IGenreRepository genreRepository, ITimeIntervalRepository timeIntervalRepository)
 {
     _movieRepository = movieRepository;
     _theaterRepository = theaterRepository;
     _genreRepository = genreRepository;
     _timeIntervalRepository = timeIntervalRepository;
 }
Ejemplo n.º 3
0
 public TheaterService(ITheaterRepository theatersRepository,
                       IMapper mapper, IAddressRepository addressRepository,
                       ITheaterSearchQueryBuilder queryBuilder)
 {
     _theatersRepository = theatersRepository;
     _mapper             = mapper;
     _addressRepository  = addressRepository;
     _query = queryBuilder;
 }
Ejemplo n.º 4
0
 public TheaterController(ITheaterRepository theaterRepository)
 {
     this.repository = theaterRepository;
 }
Ejemplo n.º 5
0
 public TheaterService(ITheaterRepository theaterRepository)
 {
     _theaterRepository = theaterRepository;
 }
 public TheaterReadModelGenerator(ITheaterRepository repository)
 => _repository = repository ?? throw new ArgumentNullException(nameof(repository));
Ejemplo n.º 7
0
 public TheaterService(ITheaterRepository theaterRepository)
 {
     _theaterRepository = theaterRepository;
 }