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