Ejemplo n.º 1
0
 public MovieFileImporter(string filePath, IMovieBaseService movieBaseService)
 {
     if (!File.Exists(filePath))
     {
         throw new MovieReaderException(filePath + " does not exist");
     }
     _filePath = filePath;
     _movieBaseService = movieBaseService;
     _importedMovies = new Dictionary<string, ImportedMovie>();
     _duplicateTitles = new List<string>();
 }
Ejemplo n.º 2
0
 public MovieBaseController(IMovieBaseService movieBaseService, IMovieBaseView view)
 {
     _view = view;
     _view.Search += Search;
     _movieBaseService = movieBaseService;
 }