示例#1
0
        public MovideoApp(IConfigReader configReader, IFileScanner fileScanner, IFileAnalyzer analyzer, IMovieDb db)
        {
            _fileScanner = fileScanner;
            _analyzer    = analyzer;
            _db          = db;

            ApiSettings apiSettings = configReader.GetApiSettings();

            if (apiSettings == null)
            {
                throw new ArgumentNullException("Impossibile proseguire. API non configurata.");
            }
            _apiClient = new TMDbClient(apiSettings.ApiKey)
            {
                DefaultCountry  = "IT",
                DefaultLanguage = "it"
            };
        }
示例#2
0
 public HomeController()
 {
     _movieDb= new MovieDb();
 }
示例#3
0
 public HomeController(IMovieDb moviedb)
 {
     _movieDb = moviedb;
 }
示例#4
0
 public HomeController(IMovieDb moviedb)
 {
     _movieDb = moviedb;
 }
示例#5
0
 public HomeController()
 {
     _movieDb = new MovieDb();
 }
 public MoviesAPIController(IMovieDb movieDb)
 {
     _movieDb = movieDb;
 }
示例#7
0
 public FileAnalyzer(IMovieDb db)
 {
     _db = db;
 }
 public MoviesAPIController(IMovieDb movieDb)
 {
     _movieDb = movieDb;
 }