Esempio n. 1
0
        public OmdbRepositoryTest()
        {
            var baseMappings = new MapperConfigurationExpression();

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

            _movieRepository = new OmdbMovieRepository(new Mapper(mapperConfig));
        }
Esempio n. 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;
 }