예제 #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;
 }