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" }; }
public HomeController() { _movieDb= new MovieDb(); }
public HomeController(IMovieDb moviedb) { _movieDb = moviedb; }
public HomeController() { _movieDb = new MovieDb(); }
public MoviesAPIController(IMovieDb movieDb) { _movieDb = movieDb; }
public FileAnalyzer(IMovieDb db) { _db = db; }