Пример #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)}");
        }
Пример #2
0
 public TVService(ITVRepository tvRepository)
 {
     this.tvRepository = tvRepository;
 }
Пример #3
0
 public TVController(ITVRepository tvRepository)
 {
     _tvRepository = tvRepository;
 }