public BackOfficeAccountController(IAccountRepository IAccountRepository, IMovieRepository IMovieRepository, IHallRepository IHallRepository, IHallMovieRepository IHallMovieRepository)
 {
     this.IAccountRepository   = IAccountRepository;
     this.IMovieRepository     = IMovieRepository;
     this.IHallRepository      = IHallRepository;
     this.IHallMovieRepository = IHallMovieRepository;
 }
Example #2
0
 /// <summary>
 /// .ctor
 /// </summary>
 /// <param name="loggerFactory">Поставщик логгера</param>
 /// <param name="hallRepository">Репозиторий залов</param>
 /// <param name="sessionRepository">Репозиторий сессий</param>
 /// <param name="filmRepository">Репозиторий фильмов</param>
 public HallService(ILoggerFactory loggerFactory, IHallRepository hallRepository, ISessionRepository sessionRepository, IFilmRepository filmRepository, IPlaceRepository placeRepository) : base(loggerFactory.CreateLogger <HallService>())
 {
     _hallRepository    = hallRepository;
     _sessionRepository = sessionRepository;
     _filmRepository    = filmRepository;
     _placeRepository   = placeRepository;
 }
Example #3
0
 public AdminScheduleController(IScheduleRepository scheduleRepo, IMovieRepository movieRepo, IHallRepository hallRepo)
 {
     ScheduleRepo = scheduleRepo;
     MovieRepo    = movieRepo;
     HallRepo     = hallRepo;
     date         = new List <DateTime>();
     duration     = new List <int>();
 }
Example #4
0
 public TrainingController(
     ITrainingRepository repository,
     ICoachRepository coachRepository,
     IHallRepository hallRepository)
 {
     _repository      = repository;
     _coachRepository = coachRepository;
     _hallRepository  = hallRepository;
 }
Example #5
0
        public HallServiceTest()
        {
            var optionsBuilder = new DbContextOptionsBuilder <ApplicationDbContext>();

            optionsBuilder.UseInMemoryDatabase("TestDb" + Guid.NewGuid());
            applicationDbContext = new ApplicationDbContext(optionsBuilder.Options);

            hallRepository = new HallRepository(applicationDbContext);
            hallService    = new HallService(hallRepository);
        }
Example #6
0
 public HallService(IHallRepository hallRepository)
 {
     _hallRepository = hallRepository;
 }
Example #7
0
 public static ScreeningTimeBuilder Init(IHallRepository hallRepository)
 {
     return(new ScreeningTimeBuilder(hallRepository));
 }
Example #8
0
 public HallCtrl()
 {
     IHallRepo = new HallRepository();
 }
Example #9
0
 public HallService(RemoteSpider remoteCall, IHallRepository repository, ILogger <HallService> logger)
 {
     this._remoteCall = remoteCall;
     this._repository = repository;
     this._logger     = logger;
 }
Example #10
0
 public ScreeningTimeBuilder(IHallRepository hallRepository)
 {
     this.hallRepository = hallRepository;
 }
Example #11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="customerRepository"></param>
 /// <param name="reservationRepository"></param>
 /// <param name="hallRepository"></param>
 public CustomerService(ICustomerRepository customerRepository, IReservationRepository reservationRepository, IHallRepository hallRepository)
 {
     _customerRepository    = customerRepository;
     _reservationRepository = reservationRepository;
     _hallRepository        = hallRepository;
 }
 /// <summary>
 /// .ctor
 /// </summary>
 /// <param name="loggerFactory">Поставщик логгера</param>
 /// <param name="filmRepository">Репозиторий фильмов</param>
 /// <param name="sessionRepository">Репозиторий сессий</param>
 /// <param name="hallRepository">Репозиторий залов</param>
 public FilmService(ILoggerFactory loggerFactory, IFilmRepository filmRepository, ISessionRepository sessionRepository, IHallRepository hallRepository) : base(loggerFactory.CreateLogger <FilmService>())
 {
     _filmRepository    = filmRepository;
     _sessionRepository = sessionRepository;
     _hallRepository    = hallRepository;
 }
Example #13
0
 public MovieService(IMovieRepository movieRepository, IHallRepository hallRepository)
 {
     this.movieRepository = movieRepository;
     this.hallRepository  = hallRepository;
 }
 public HallController(IHallRepository repository)
 {
     _repository = repository;
 }
Example #15
0
 public EFHallManager(IHallRepository hallRepository)
 {
     _hallRepository = hallRepository;
 }
Example #16
0
 public HallController(IHallRepository hallRepository, IUrlHelper urlHelper, ILogger <HallController> logger)
 {
     _hallRepository = hallRepository;
     _urlHelper      = urlHelper;
     _logger         = logger;
 }
Example #17
0
 public HallController(IHallRepository repo)
 {
     this.repo = repo;
 }
Example #18
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="hallRepository"></param>
 public HallService(IHallRepository hallRepository)
 {
     this._hallRepository = hallRepository;
 }
 /// <summary>
 /// Конструктор класса
 /// </summary>
 /// <param name="loggerFactory">Поставщик логгера</param>
 /// <param name="cinemaRepository">Репозиторий кинотеатра</param>
 /// <param name="filmRepository">Репозиторий фильмов</param>
 /// <param name="hallRepository">Репозиторий залов</param>
 public CinemaService(ILoggerFactory loggerFactory, ICinemaRepository cinemaRepository, IFilmRepository filmRepository, IHallRepository hallRepository) : base(loggerFactory.CreateLogger <CinemaService>())
 {
     _cinemaRepository = cinemaRepository;
     _filmRepository   = filmRepository;
     _hallRepository   = hallRepository;
 }