public GenresController(
     IModeratorGenreService genreService,
     IHttpContextAccessor contextAccessor)
     : base(contextAccessor)
 {
     this.genreService = genreService;
 }
Пример #2
0
 public MoviesController(
     IModeratorMovieService movieService,
     IModeratorGenreService genreService,
     IModeratorPersonService personService,
     IHttpContextAccessor contextAccessor)
     : base(contextAccessor)
 {
     this.movieService  = movieService;
     this.genreService  = genreService;
     this.personService = personService;
 }
 public void Initialize()
 {
     this.dbContext    = MockDbContext.GetDbContext();
     this.genreService = new ModeratorGenreService(this.dbContext, MockAutoMapper.GetMapper());
 }