Esempio n. 1
0
        public TMDbSearchRepository(TMDbClient tmdbClient, IMovieRepository movieRepository, ITVRepository tvRepository)
        {
            this.tmdbClient = tmdbClient ?? throw new ArgumentNullException($"{nameof(tmdbClient)}");
            this.tmdbClient.GetConfigAsync();

            this.movieRepository = movieRepository ?? throw new ArgumentNullException($"{nameof(movieRepository)}");
            this.tvRepository    = tvRepository ?? throw new ArgumentNullException($"{nameof(tvRepository)}");
        }
Esempio n. 2
0
 public TVService(ITVRepository tvRepository)
 {
     this.tvRepository = tvRepository;
 }
Esempio n. 3
0
 public TVController(ITVRepository tvRepository)
 {
     _tvRepository = tvRepository;
 }