Example #1
0
 public MovieAggregatorService(IMovieInfoProvider infoProvider,
                               ITrailerProvider trailerProvider,
                               IMovieCacheService cache)
 {
     _infoProvider    = infoProvider;
     _trailerProvider = trailerProvider;
     _cache           = cache;
 }
 public MovieInfoService(IMovieInfoProvider movieInfoProvider, ILogger <MovieInfoService> logger)
 {
     this.movieInfoProvider = movieInfoProvider ?? throw new ArgumentNullException(nameof(movieInfoProvider));
     this.logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }