public GenresController(
     IGenresService genresService,
     IMoviesService moviesService)
 {
     this.genresService = genresService;
     this.moviesService = moviesService;
 }
 public GenresController(
     IGenresService genresService,
     IBooksService booksService)
 {
     this.genresService = genresService;
     this.booksService  = booksService;
 }
示例#3
0
 public IndexModel(IPopularityService popularityService, IMovieService movieService, IGenresService genresService, IMapper mapper)
 {
     _popularityService = popularityService;
     _movieService      = movieService;
     _genresService     = genresService;
     _mapper            = mapper;
 }
示例#4
0
        public GenresServiceTests()
        {
            this.InitializeMapper();
            this.InitializeDatabaseAndRepositories();
            this.InitializeFields();

            this.genresService = new GenresService(this.genresRepository);
        }
 public EditDiscsDetailsViewModel(IFolderProvider folderProvider, IDiscsService discService, IArtistsService artistService, IGenresService genreService)
 {
     this.folderProvider = folderProvider ?? throw new ArgumentNullException(nameof(folderProvider));
     this.discService    = discService ?? throw new ArgumentNullException(nameof(discService));
     this.artistService  = artistService ?? throw new ArgumentNullException(nameof(artistService));
     this.genreService   = genreService ?? throw new ArgumentNullException(nameof(genreService));
     Discs = new ObservableCollection <DiscViewItem>();
 }
示例#6
0
 public GenresController(AppDbContext dbContext,
                         IMapper mapper,
                         IGenresService genresService)
 {
     _dbContext     = dbContext;
     _mapper        = mapper;
     _genresService = genresService;
 }
 public GroupsController(
     IGenresService genresService,
     IGroupsService groupsService,
     IConcertsService concertsService)
 {
     this.genresService   = genresService;
     this.groupsService   = groupsService;
     this.concertsService = concertsService;
 }
示例#8
0
 public MoviesController(
     IGenresService genresService,
     IMoviesService moviesService,
     IWebHostEnvironment environment)
 {
     this.genresService = genresService;
     this.moviesService = moviesService;
     this.environment   = environment;
 }
        public GenresController(IGenresService genresService)
        {
            if (genresService == null)
            {
                throw new ArgumentNullException(nameof(genresService));
            }

            _genresService = genresService;
        }
        public GamesService(IDeletableEntityRepository <Game> gamesRepository,
                            IGenresService genresService,
                            IImageService imageService)

        {
            this.gamesRepository = gamesRepository;
            this.genresService   = genresService;
            this.imageService    = imageService;
        }
 public GamesController(IDeletableEntityRepository <Game> gamesRepository,
                        IGamesService gamesService,
                        IGenresService genresService,
                        IWebHostEnvironment environment)
 {
     this.gamesRepository = gamesRepository;
     this.gamesService    = gamesService;
     this.genresService   = genresService;
     this.environment     = environment;
 }
示例#12
0
 public ManagersController(ICinemaService cinemaService,
                           IMoviesService moviesService,
                           IGenresService genresService,
                           ILogger logger)
 {
     _cinemaService = cinemaService;
     _moviesService = moviesService;
     _genresService = genresService;
     _logger        = logger;
 }
 public MoviesController(
     IMoviesService moviesService,
     IActorsService actorsService,
     IGenresService genresService,
     IDirectorsService directorsService)
 {
     this.moviesService    = moviesService;
     this.actorsService    = actorsService;
     this.genresService    = genresService;
     this.directorsService = directorsService;
 }
 public MoviesController(
     IMoviesService moviesService,
     IDirectorsService directorsService,
     IGenresService genresService,
     ICountriesService countriesService)
 {
     this.moviesService    = moviesService;
     this.directorsService = directorsService;
     this.genresService    = genresService;
     this.countriesService = countriesService;
 }
示例#15
0
 public MoviesController(
     IMoviesService moviesService,
     IGenresService genresService,
     IPeopleService peopleService,
     ILogger <MoviesController> logger
     )
 {
     _moviesService = moviesService ?? throw new ArgumentNullException(nameof(moviesService));
     _genresService = genresService ?? throw new ArgumentNullException(nameof(genresService));
     _peopleService = peopleService ?? throw new ArgumentNullException(nameof(peopleService));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }
示例#16
0
 public PersonsController(
     IAwardsService awardsService,
     IPersonsService personsService,
     IEditionsService editionsService,
     IReviewsService reviewsService,
     IWorksService worksService,
     IGenresService genresService)
 {
     _awardsService   = awardsService;
     _personsService  = personsService;
     _editionsService = editionsService;
     _reviewsService  = reviewsService;
     _worksService    = worksService;
     _genresService   = genresService;
 }
示例#17
0
 public WorksController(
     IAwardsService awardsService,
     IWorksService worksService,
     IEditionsService editionsService,
     IReviewsService reviewsService,
     ITranslationsService translationsService,
     IGenresService genresService)
 {
     _awardsService       = awardsService;
     _worksService        = worksService;
     _editionsService     = editionsService;
     _reviewsService      = reviewsService;
     _translationsService = translationsService;
     _genresService       = genresService;
 }
示例#18
0
        public AddBookController(
            IBooksService booksService,
            IGenresService genresService,
            IUserProvider userProvider,
            IServerProvider serverProvider,
            ICacheProvider cacheProvider,
            IMapperAdapter mapper)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

            if (genresService == null)
            {
                throw new ArgumentNullException("genresService");
            }

            if (userProvider == null)
            {
                throw new ArgumentNullException("userProvider");
            }

            if (serverProvider == null)
            {
                throw new ArgumentNullException("serverProvider");
            }

            if (cacheProvider == null)
            {
                throw new ArgumentNullException("cacheProvider");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            this.booksService   = booksService;
            this.genresService  = genresService;
            this.userProvider   = userProvider;
            this.serverProvider = serverProvider;
            this.cacheProvider  = cacheProvider;
            this.mapper         = mapper;
        }
示例#19
0
 public BooksController(
     IBooksService booksService,
     IGenresService genresService,
     ITagsService tagsService,
     IAwardsService awardsService,
     IAuthorsService authorsService,
     IEditionLanguagesService languagesService,
     IBookTagsService bookTagsService,
     ICloudinaryService cloudinaryService)
 {
     this.booksService      = booksService;
     this.genresService     = genresService;
     this.tagsService       = tagsService;
     this.awardsService     = awardsService;
     this.authorsService    = authorsService;
     this.languagesService  = languagesService;
     this.bookTagsService   = bookTagsService;
     this.cloudinaryService = cloudinaryService;
 }
示例#20
0
        public SearchController(IBooksService booksService, IGenresService genresService, IMapperAdapter mapper)
        {
            if (booksService == null)
            {
                throw new ArgumentNullException("booksService");
            }

            if (genresService == null)
            {
                throw new ArgumentNullException("genresService");
            }

            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            this.booksService  = booksService;
            this.genresService = genresService;
            this.mapper        = mapper;
        }
示例#21
0
 public GamesController(
     IGamesService gamesService,
     IGenresService genresService,
     ILanguagesService languagesService,
     ITagsService tagsService,
     IPublishersService publishersService,
     IWebHostEnvironment environment,
     IWishlistService wishlistService,
     IOrdersService ordersService,
     ICartService cartService,
     IMemoryCache cache)
 {
     this.gamesService      = gamesService;
     this.genresService     = genresService;
     this.languagesService  = languagesService;
     this.tagsService       = tagsService;
     this.publishersService = publishersService;
     this.environment       = environment;
     this.wishlistService   = wishlistService;
     this.ordersService     = ordersService;
     this.cartService       = cartService;
     this.cache             = cache;
 }
 public GenresController(IGenresService genresService)
 {
     this.genresService = genresService;
 }
 public HomeController(IGenresService genresService, IBookService serviceBooks, IUserService userService)
 {
     this.userService   = userService;
     this.serviceBooks  = serviceBooks;
     this.genresService = genresService;
 }
 public HomeController(IUserService userService, IGenresService genresService)
 {
     this.userService   = userService;
     this.genresService = genresService;
 }
 public RandomGenresViewComponent(IGenresService genresService)
 {
     this.genresService = genresService;
 }
示例#26
0
 public SeedElementsSuggestionsService(IArtistsService artistsService, IGenresService genresService)
 {
     _artistsService = artistsService;
     _genresService  = genresService;
 }
 public GenreSelectorViewComponent(IGenresService service)
 {
     _service = service;
 }
示例#28
0
 public MoviesApiRepository(MovieContext context, IGenresService genresService, IPeopleService peopleService)
 {
     _context       = context ?? throw new ArgumentNullException(nameof(context));
     _genresService = genresService ?? throw new ArgumentNullException(nameof(genresService));
     _peopleService = peopleService ?? throw new ArgumentNullException(nameof(peopleService));
 }
示例#29
0
 public GenresCacheService()
 {
     _genresService = Container.Resolve <IGenresService>(BeezyTestEnums.ServiceType.Api);
 }
 //public GenresController()
 //{
 //     var dbContext = new MovieDbContext();
 //     this.service =  new GenresService(new EfRepository<Genre>(dbContext));
 //}
 public GenresController(IGenresService genresService)
 {
     this.service = genresService;
 }
示例#31
0
 public GenresAPIController(IGenresService genresService)
 {
     _genresService = genresService;
 }