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