Esempio n. 1
0
        public AdminSession(AdminForm f1, ISessionService sessionService, IFilmsService filmsService, ValidationField valid)
        {
            _valid = valid;

            _sessionService = sessionService;
            _filmsService   = filmsService;

            _f1 = f1;

            _f1.Load += Form1_Load;

            _dataGridSession            = _f1.DataGridsession;
            _dataGridSession.CellClick += dataGridSession_CellClick;

            _addSession        = _f1.addSession;
            _addSession.Click += AddSession_Click;


            _deleteSession        = _f1.deleteSession;
            _deleteSession.Click += DeleteSession_Click;

            _updateSession        = _f1.updateSession;
            _updateSession.Click += UpdateSession_Click;

            _filmName        = _f1.sessionidfilm;
            _filmName.Click += SessionIDFilm_Click;
        }
Esempio n. 2
0
 public OrdersController(IOrderService orderService, ICinemasService cinemasService, IFilmsService filmsService, ISeanceService seanceService)
 {
     _orderService   = orderService;
     _cinemasService = cinemasService;
     _filmsService   = filmsService;
     _seanceService  = seanceService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="userManager"></param>
 /// <param name="signInManager"></param>
 /// <param name="profileService"></param>
 public FilmsController(UserManager <User> userManager, IProfileService profileService, IApiService apiService, IFilmsService filmsService)
 {
     _userManager    = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _profileService = profileService ?? throw new ArgumentNullException(nameof(profileService));
     _filmsService   = filmsService ?? throw new ArgumentNullException(nameof(filmsService));
     _IApiService    = apiService ?? throw new ArgumentNullException(nameof(apiService));
 }
        public FilmsAPIControllerTest()
        {
            var option = new DbContextOptionsBuilder <DatabaseContext>()
                         .UseInMemoryDatabase(databaseName: "DefaultConnection")
                         .Options;

            _unitOfWork = new UnitOfWork(option);

            #region
            _unitOfWork.Films.Create(new Films
            {
                Name        = "Test",
                Year        = 2019,
                Duration    = 182,
                Description = "Оставшиеся в живых члены команды Мстителей и их союзники должны разработать новый план, который поможет противостоять разрушительным действиям могущественного титана Таноса. После наиболее масштабной и трагической битвы в истории они не могут допустить ошибку.",
                Img         = "/img/mstiteli.jpg",
                DateStart   = Convert.ToDateTime("20-05-2019"),
                DateEnd     = Convert.ToDateTime("20-06-2019")
            });
            _unitOfWork.Save();

            _unitOfWork.ApplicationUsers.Create();
            var user = _unitOfWork.ApplicationUsers.GetByEmail("*****@*****.**");

            #endregion

            _service    = new FilmsService(_unitOfWork, _mapper);
            _controller = new FilmsAPIController(_service);
        }
Esempio n. 5
0
 public StarwarsController(ILogger <StarwarsController> logger,
                           IPeopleService peopleService,
                           IFilmsService filmsService)
 {
     _logger        = logger;
     _peopleService = peopleService;
     _filmsService  = filmsService;
 }
Esempio n. 6
0
 public FilmsController(
     ILogger <FilmsController> logger,
     IMapper mapper,
     IFilmsService filmsService)
 {
     _logger       = logger;
     _mapper       = mapper;
     _filmsService = filmsService;
 }
Esempio n. 7
0
        public AdminFilms(AdminForm f1, IFilmsService filmsService, ValidationField valid)
        {
            _valid = valid;

            _filmsService = filmsService;

            _f1 = f1;

            _f1.Load += Form1_Load;

            _dataGridFilms            = _f1.DataGridfilms;
            _dataGridFilms.CellClick += dataGridFilms_CellClick;

            _addFilms        = _f1.addFilm;
            _addFilms.Click += AddFilm_Click;

            _deleteFilms        = _f1.deleteFilm;
            _deleteFilms.Click += DeleteFilm_Click;

            _updateFilms        = _f1.updateFilm;
            _updateFilms.Click += UpdateFilm_Click;
        }
Esempio n. 8
0
 public FilmsController(IFilmsService filmsService, IPeopleService peopleService)
 {
     _filmsService  = filmsService;
     _peopleService = peopleService;
 }
 public HomeController(ILogger <HomeController> logger, IFilmsService filmsService, IMapper mapper)
 {
     _logger       = logger;
     _filmsService = filmsService;
     _mapper       = mapper;
 }
Esempio n. 10
0
 public SeancesController(ISeanceService seanceService, ICinemasService cinemasService, IFilmsService filmsService)
 {
     _seanceService  = seanceService;
     _cinemasService = cinemasService;
     _filmsService   = filmsService;
 }
Esempio n. 11
0
 public FilmsController(IFilmsService FilmsService)
 {
     _FilmsService = FilmsService;
 }
Esempio n. 12
0
 public FilmsViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IFilmsService filmsService) : base(navigationService, pageDialogService)
 {
     _filmService = filmsService;
     GetApp();
 }
 public FilmDetailsController(IFilmsService filmsService)
 {
     _filmsService = filmsService;
 }
 public FilmsController([NotNull] IFilmsService filmsService)
 {
     _filmsService = filmsService;
 }
Esempio n. 15
0
        public SearchFilmViewModel(IFilmsService service)
        {
            filmService = service;

            SearchFilm = new RelayCommand(FindFilm);
        }
Esempio n. 16
0
 public ModeratorController(ICinemasService cinemasService, IFilmsService filmsService)
 {
     _cinemasService = cinemasService;
     _filmsService   = filmsService;
 }
Esempio n. 17
0
 public HomeController(IFilmsService filmsService)
 {
     _filmsService = filmsService;
 }
Esempio n. 18
0
 public FilmsController(IFilmsService filmsService)
 {
     _dataService = filmsService;
 }
Esempio n. 19
0
 public LookedFilmsViewModel(IFilmsService service)
 {
     filmService = service;
 }
Esempio n. 20
0
 public FilmsAPIController(IFilmsService filmsService)
 {
     _filmsService = filmsService;
 }
Esempio n. 21
0
 public DirectorController(ILogger <DirectorController> logger, IFilmsService filmsService, IMapper mapper)
 {
     _logger       = logger;
     _filmsService = filmsService;
     _mapper       = mapper;
 }
Esempio n. 22
0
 public FilmsController(IFilmsService service)
 {
     _service = service;
 }
 public PeopleController(IPeopleService peopleService, IFilmsService filmsService)
 {
     _peopleService = peopleService;
     _filmsService  = filmsService;
 }
Esempio n. 24
0
 public RatingsController(IRatingsService ratingsService, IFilmsService FilmsService)
 {
     _ratingsService = ratingsService;
     _FilmsService   = FilmsService;
 }
Esempio n. 25
0
 public SeanceService(IUnitOfWork unitOfWork, IFilmsService filmService, ISeatsBusyService seatsBusyService)
 {
     _unitOfWork       = unitOfWork;
     _filmService      = filmService;
     _seatsBusyService = seatsBusyService;
 }
Esempio n. 26
0
 public FilmsController(IFilmsService films, IMapper mapper)
 {
     Films  = films;
     Mapper = mapper;
 }
Esempio n. 27
0
 public FilmsController(IFilmsService films)
 {
     Films = films;
 }