public OmdbRepositoryTest()
        {
            var baseMappings = new MapperConfigurationExpression();

            baseMappings.AddProfile <MappingProfile>();
            var mapperConfig = new MapperConfiguration(baseMappings);

            _movieRepository = new OmdbMovieRepository(new Mapper(mapperConfig));
        }
Exemple #2
0
 public MovieService(IThirdPartyMovieRepository thirdPartyMovieRepository,
                     IMovieRespository databaseMovieRespository, IHostingEnvironment hostingEnvironment,
                     IGenreRepository genreRepository, ITrackRepository trackRepository, IMapper mapper)
 {
     _thirdPartyMovieRepository = thirdPartyMovieRepository;
     _movieRespository          = databaseMovieRespository;
     _genreRepository           = genreRepository;
     _mapper             = mapper;
     _trackRepository    = trackRepository;
     _hostingEnvironment = hostingEnvironment;
 }