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; }
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); }
public StarwarsController(ILogger <StarwarsController> logger, IPeopleService peopleService, IFilmsService filmsService) { _logger = logger; _peopleService = peopleService; _filmsService = filmsService; }
public FilmsController( ILogger <FilmsController> logger, IMapper mapper, IFilmsService filmsService) { _logger = logger; _mapper = mapper; _filmsService = filmsService; }
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; }
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; }
public SeancesController(ISeanceService seanceService, ICinemasService cinemasService, IFilmsService filmsService) { _seanceService = seanceService; _cinemasService = cinemasService; _filmsService = filmsService; }
public FilmsController(IFilmsService FilmsService) { _FilmsService = FilmsService; }
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; }
public SearchFilmViewModel(IFilmsService service) { filmService = service; SearchFilm = new RelayCommand(FindFilm); }
public ModeratorController(ICinemasService cinemasService, IFilmsService filmsService) { _cinemasService = cinemasService; _filmsService = filmsService; }
public HomeController(IFilmsService filmsService) { _filmsService = filmsService; }
public FilmsController(IFilmsService filmsService) { _dataService = filmsService; }
public LookedFilmsViewModel(IFilmsService service) { filmService = service; }
public FilmsAPIController(IFilmsService filmsService) { _filmsService = filmsService; }
public DirectorController(ILogger <DirectorController> logger, IFilmsService filmsService, IMapper mapper) { _logger = logger; _filmsService = filmsService; _mapper = mapper; }
public FilmsController(IFilmsService service) { _service = service; }
public PeopleController(IPeopleService peopleService, IFilmsService filmsService) { _peopleService = peopleService; _filmsService = filmsService; }
public RatingsController(IRatingsService ratingsService, IFilmsService FilmsService) { _ratingsService = ratingsService; _FilmsService = FilmsService; }
public SeanceService(IUnitOfWork unitOfWork, IFilmsService filmService, ISeatsBusyService seatsBusyService) { _unitOfWork = unitOfWork; _filmService = filmService; _seatsBusyService = seatsBusyService; }
public FilmsController(IFilmsService films, IMapper mapper) { Films = films; Mapper = mapper; }
public FilmsController(IFilmsService films) { Films = films; }