Пример #1
0
 public CinemaController(
     ICinemaService cinemaService,
     IMapper mapper)
 {
     this.cinemaService = cinemaService;
     this.mapper        = mapper;
 }
 public PromotionCineController(IPromotionCineService promotionCineService, IStatusService statusService, ICinemaService cinemaService, IPromotionService promotionService)
 {
     _promotionCineService = promotionCineService;
     _statusService        = statusService;
     _cinemaService        = cinemaService;
     _promotionService     = promotionService;
 }
Пример #3
0
 public HomeController(ICinemaService cinemaService
                       , IOptions <ConnectionOption> options
                       )
 {
     _cinemaService = cinemaService;
     _options       = options;
 }
Пример #4
0
 public RoomFilmController(ICinemaService cinemaService, IStaffService staffService,
                           IRoomFilmService roomFilmService)
 {
     _cinemaService   = cinemaService;
     _staffService    = staffService;
     _roomFilmService = roomFilmService;
 }
Пример #5
0
 public MyOrdersController(IOrderService orderService, ICinemaService cinemaService, IFilmService filmService, ISeanceService seanceService)
 {
     _orderService  = orderService;
     _filmService   = filmService;
     _cinemaService = cinemaService;
     _seanceService = seanceService;
 }
Пример #6
0
 public CinemaController(
     [FromServices] ICinemaService cinemaService,
     [FromServices] ILogger <CinemaController> logger)
 {
     this.logger        = logger;
     this.cinemaService = cinemaService;
 }
Пример #7
0
        public HomeController(ICinemaService cinemaService, IMovieService movieService, IDataProvider dataProvider)
        {
            _cinemaService = cinemaService;
            _movieService  = movieService;

            _dataProvider = dataProvider;
        }
Пример #8
0
 public SeanceInfoController(ISeanceService seanceService, IFilmService filmService, IBusySeatService seatsBusyService, ICinemaService cinemaService)
 {
     _seanceService    = seanceService;
     _filmService      = filmService;
     _seatsBusyService = seatsBusyService;
     _cinemaService    = cinemaService;
 }
Пример #9
0
        public LoginViewModel(ICinemaService model)
        {
            this._model = model ?? throw new ArgumentNullException(nameof(model));
            UserName    = String.Empty;

            ExitCommand  = new DelegateCommand(param => OnExitApplication());
            LoginCommand = new DelegateCommand(param => LoginAsync(param as PasswordBox));
        }
Пример #10
0
        public MoviesController(ICinemaService cinemaService, ILogger <MoviesController> logger, IUrlHelper urlHelper)
        {
            this.cinemaService = cinemaService;

            this.logger = logger;

            this.urlHelper = urlHelper;
        }
Пример #11
0
        public CinemaController()
        {
            var dbFactory = new DatabaseFactory();

            this.cinemaRepository = new Repository <Domain.Cinema>(dbFactory);
            this.unitOfWork       = new UnitOfWork(dbFactory);
            this.cinemaService    = new CinemaService(dbFactory);
        }
Пример #12
0
 public UsersController(IUserService users,
                        UserManager <User> userManager,
                        ICinemaService projections)
 {
     this.users       = users;
     this.userManager = userManager;
     this.projections = projections;
 }
Пример #13
0
        public MenuViewModel(ICinemaService model)
        {
            _model = model ?? throw new ArgumentNullException(nameof(model));

            NewMovieCommand = new DelegateCommand(param => OnNewMovie());
            NewShowCommand  = new DelegateCommand(param => OnNewShow());
            ReserveCommand  = new DelegateCommand(param => OnReserve());
            LogoutCommand   = new DelegateCommand(param => OnLogout());
        }
 public ProjectionsController(
     IProjectionsService projectionsService,
     IMoviesService moviesService,
     ICinemaService cinemaService)
 {
     this.projectionsService = projectionsService;
     this.moviesService      = moviesService;
     this.cinemaService      = cinemaService;
 }
Пример #15
0
        public NewMovieViewModel(ICinemaService model)
        {
            _model = model ?? throw new ArgumentNullException(nameof(model));

            newMovie = new MovieDto();

            SendCommand   = new DelegateCommand(param => AddNewMovie());
            CancelCommand = new DelegateCommand(param => OnCancel());
            OpenPicture   = new DelegateCommand(param => CreateImage());
        }
Пример #16
0
 public HomeController(IStatusService statusService, IFilmService filmService, IAdsBannerService adsBannerService, IEventTopicService eventTopicService, ICinemaService cinemaService, IPromotionService promotionService, IPromotionCineService promotionCineService)
 {
     _statusService        = statusService;
     _filmService          = filmService;
     _adsBannerService     = adsBannerService;
     _eventTopicService    = eventTopicService;
     _cinemaService        = cinemaService;
     _promotionService     = promotionService;
     _promotionCineService = promotionCineService;
 }
Пример #17
0
 public ManagersController(ICinemaService cinemaService,
                           IMoviesService moviesService,
                           IGenresService genresService,
                           ILogger logger)
 {
     _cinemaService = cinemaService;
     _moviesService = moviesService;
     _genresService = genresService;
     _logger        = logger;
 }
Пример #18
0
        public NewShowViewModel(ICinemaService model)
        {
            _model = model ?? throw new ArgumentNullException(nameof(model));

            NewShow = new ShowDto();
            LoadData();

            SendCommand   = new DelegateCommand(param => AddNewShow());
            CancelCommand = new DelegateCommand(param => OnCancel());
        }
 public AdminDashboardController(CinemaTicketBookingContext context,
                                 UserManager <ApplicationUser> userManager,
                                 ILogger <AccountController> logger,
                                 ICinemaService cinemaService)
 {
     _userManager   = userManager;
     _context       = context;
     _logger        = logger;
     _cinemaService = cinemaService;
 }
Пример #20
0
        public ReservationViewModel(ICinemaService model)
        {
            _model = model ?? throw new ArgumentNullException(nameof(model));
            LoadData();

            _newReservation = new ReservationDto();
            CancelCommand   = new DelegateCommand(param => OnCancel());
            OpenShowSeats   = new DelegateCommand(param => LoadSeats(param as ShowDto));
            SellTickets     = new DelegateCommand(param => SendReservation());
        }
 public CinemasController(CinemaTicketBookingContext context,
                          UserManager <ApplicationUser> userManager,
                          ILogger <AccountController> logger,
                          ICinemaService cinemaService,
                          IImageHandler imageHandler)
 {
     _userManager   = userManager;
     _context       = context;
     _logger        = logger;
     _cinemaService = cinemaService;
     _imageHandler  = imageHandler;
 }
Пример #22
0
        public DateResolverDialog(ICinemaService cinemaService) : base(nameof(DateResolverDialog))
        {
            this.cinemaService = cinemaService;
            AddDialog(new DateTimePrompt(nameof(DateTimePrompt), DateTimePromptValidator));
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                InitialStepAsync,
                FinalStepAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #23
0
        private void App_Startup(object sender, StartupEventArgs e)
        {
            _service = new CinemaServices(ConfigurationManager.AppSettings["baseAddress"]);

            _loginViewModel = new LoginViewModel(_service);

            _loginViewModel.ExitApplication    += ViewModel_ExitApplication;
            _loginViewModel.MessageApplication += ViewModel_MessageApplication;
            _loginViewModel.LoginSuccess       += ViewModel_LoginSuccess;
            _loginViewModel.LoginFailed        += ViewModel_LoginFailed;

            _loginWindow = new LoginWindow
            {
                DataContext = _loginViewModel
            };
            _loginWindow.Show();
        }
Пример #24
0
        public MainDialog(TicketBookingRecognizer recognizer, BookingDialog bookingDialog, ICinemaService cinemaService,
                          IWarningsService warningsService, ITranslationService translationService, UserState userState) : base(nameof(MainDialog))
        {
            luisRecognizer          = recognizer;
            this.cinemaService      = cinemaService;
            this.warningsService    = warningsService;
            this.translationService = translationService;
            languageStateProperty   = userState.CreateProperty <string>("LanguagePreference");
            needToTranslateProperty = userState.CreateProperty <bool>("NeedToTranslate");

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(bookingDialog);
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                IntroStepAsync,
                ActStepAsync,
                FinalStepAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #25
0
        public BookingDialog(ICinemaService cinemaService, UserState userState, ITranslationService translationService)
            : base(nameof(BookingDialog))
        {
            this.cinemaService      = cinemaService;
            this.translationService = translationService;
            languageStateProperty   = userState.CreateProperty <string>("LanguagePreference");
            needToTranslateProperty = userState.CreateProperty <bool>("NeedToTranslate");

            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));
            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));
            AddDialog(new DateResolverDialog(cinemaService));
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                MovieStepAsync,
                MovieDateStepAsync,
                CinemaStepAsync,
                ConfirmStepAsync,
                FinalStepAsync,
            }));

            InitialDialogId = nameof(WaterfallDialog);
        }
Пример #26
0
 public MovieController(IMovieService movieService, ICinemaService cinemaService)
 {
     _movieService  = movieService;
     _cinemaService = cinemaService;
 }
Пример #27
0
 public CinemaTests(ICinemaService cinemaService)
 {
     _cinemaService = cinemaService;
 }
Пример #28
0
 public CinemaController(ICinemaService cinemaService, IMapper mapper)
 {
     _cinemaService = cinemaService;
     _mapper        = mapper;
 }
Пример #29
0
 public CinemaController(ICinemaService service)
 {
     _service = service;
 }
Пример #30
0
 public SeancesController(ISeanceService seanceService, ICinemaService cinemaService, IFilmService filmService)
 {
     _seanceService = seanceService;
     _filmService   = filmService;
     _cinemaService = cinemaService;
 }
 public AdminCinemaController(ICinemaService service)
 {
     _service = service;
 }