public GenresController( IModeratorGenreService genreService, IHttpContextAccessor contextAccessor) : base(contextAccessor) { this.genreService = genreService; }
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()); }