Beispiel #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;
 }
Beispiel #3
0
 public HomeController(ICinemaService cinemaService
                       , IOptions <ConnectionOption> options
                       )
 {
     _cinemaService = cinemaService;
     _options       = options;
 }
Beispiel #4
0
 public RoomFilmController(ICinemaService cinemaService, IStaffService staffService,
                           IRoomFilmService roomFilmService)
 {
     _cinemaService   = cinemaService;
     _staffService    = staffService;
     _roomFilmService = roomFilmService;
 }
 public MyOrdersController(IOrderService orderService, ICinemaService cinemaService, IFilmService filmService, ISeanceService seanceService)
 {
     _orderService  = orderService;
     _filmService   = filmService;
     _cinemaService = cinemaService;
     _seanceService = seanceService;
 }
Beispiel #6
0
 public CinemaController(
     [FromServices] ICinemaService cinemaService,
     [FromServices] ILogger <CinemaController> logger)
 {
     this.logger        = logger;
     this.cinemaService = cinemaService;
 }
Beispiel #7
0
        public HomeController(ICinemaService cinemaService, IMovieService movieService, IDataProvider dataProvider)
        {
            _cinemaService = cinemaService;
            _movieService  = movieService;

            _dataProvider = dataProvider;
        }
Beispiel #8
0
 public SeanceInfoController(ISeanceService seanceService, IFilmService filmService, IBusySeatService seatsBusyService, ICinemaService cinemaService)
 {
     _seanceService    = seanceService;
     _filmService      = filmService;
     _seatsBusyService = seatsBusyService;
     _cinemaService    = cinemaService;
 }
Beispiel #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));
        }
Beispiel #10
0
        public MoviesController(ICinemaService cinemaService, ILogger <MoviesController> logger, IUrlHelper urlHelper)
        {
            this.cinemaService = cinemaService;

            this.logger = logger;

            this.urlHelper = urlHelper;
        }
Beispiel #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);
        }
 public UsersController(IUserService users,
                        UserManager <User> userManager,
                        ICinemaService projections)
 {
     this.users       = users;
     this.userManager = userManager;
     this.projections = projections;
 }
Beispiel #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;
 }
Beispiel #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());
        }
Beispiel #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;
 }
Beispiel #17
0
 public ManagersController(ICinemaService cinemaService,
                           IMoviesService moviesService,
                           IGenresService genresService,
                           ILogger logger)
 {
     _cinemaService = cinemaService;
     _moviesService = moviesService;
     _genresService = genresService;
     _logger        = logger;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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);
        }
Beispiel #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();
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #26
0
 public MovieController(IMovieService movieService, ICinemaService cinemaService)
 {
     _movieService  = movieService;
     _cinemaService = cinemaService;
 }
Beispiel #27
0
 public CinemaTests(ICinemaService cinemaService)
 {
     _cinemaService = cinemaService;
 }
Beispiel #28
0
 public CinemaController(ICinemaService cinemaService, IMapper mapper)
 {
     _cinemaService = cinemaService;
     _mapper        = mapper;
 }
Beispiel #29
0
 public CinemaController(ICinemaService service)
 {
     _service = service;
 }
 public SeancesController(ISeanceService seanceService, ICinemaService cinemaService, IFilmService filmService)
 {
     _seanceService = seanceService;
     _filmService   = filmService;
     _cinemaService = cinemaService;
 }
 public AdminCinemaController(ICinemaService service)
 {
     _service = service;
 }