public AddSampleYouTubeVideosJob(ISession session, TaskCache<string, PreparedStatement> statementCache, ISampleDataService sampleDataService,
                                         IManageSampleYouTubeVideos youTubeManager, IGetSampleData sampleDataRetriever)
            : base(session, statementCache)
        {
            if (sampleDataService == null) throw new ArgumentNullException("sampleDataService");
            if (youTubeManager == null) throw new ArgumentNullException("youTubeManager");
            if (sampleDataRetriever == null) throw new ArgumentNullException("sampleDataRetriever");

            _sampleDataService = sampleDataService;
            _youTubeManager = youTubeManager;
            _sampleDataRetriever = sampleDataRetriever;
        }
Ejemplo n.º 2
0
 public AddSampleRatingsHandler(IGetSampleData sampleDataRetriever, IRatingsService ratingsService)
 {
     if (sampleDataRetriever == null)
     {
         throw new ArgumentNullException("sampleDataRetriever");
     }
     if (ratingsService == null)
     {
         throw new ArgumentNullException("ratingsService");
     }
     _sampleDataRetriever = sampleDataRetriever;
     _ratingsService      = ratingsService;
 }
Ejemplo n.º 3
0
 public AddSampleVideoViewsHandler(IGetSampleData sampleDataRetriever, IStatisticsService statsService)
 {
     if (sampleDataRetriever == null)
     {
         throw new ArgumentNullException("sampleDataRetriever");
     }
     if (statsService == null)
     {
         throw new ArgumentNullException("statsService");
     }
     _sampleDataRetriever = sampleDataRetriever;
     _statsService        = statsService;
 }
Ejemplo n.º 4
0
 public AddSampleCommentsHandler(IGetSampleData sampleDataRetriever, ICommentsService commentService)
 {
     if (sampleDataRetriever == null)
     {
         throw new ArgumentNullException("sampleDataRetriever");
     }
     if (commentService == null)
     {
         throw new ArgumentNullException("commentService");
     }
     _sampleDataRetriever = sampleDataRetriever;
     _commentService      = commentService;
 }
        public AddSampleYouTubeVideosHandler(IGetSampleData sampleDataRetriever, IManageSampleYouTubeVideos youTubeManager,
                                             IVideoCatalogService videoCatalog)
        {
            if (sampleDataRetriever == null)
            {
                throw new ArgumentNullException("sampleDataRetriever");
            }
            if (youTubeManager == null)
            {
                throw new ArgumentNullException("youTubeManager");
            }
            if (videoCatalog == null)
            {
                throw new ArgumentNullException("videoCatalog");
            }

            _sampleDataRetriever = sampleDataRetriever;
            _youTubeManager      = youTubeManager;
            _videoCatalog        = videoCatalog;
        }
        public AddSampleYouTubeVideosJob(ISession session, TaskCache <string, PreparedStatement> statementCache, ISampleDataService sampleDataService,
                                         IManageSampleYouTubeVideos youTubeManager, IGetSampleData sampleDataRetriever)
            : base(session, statementCache)
        {
            if (sampleDataService == null)
            {
                throw new ArgumentNullException("sampleDataService");
            }
            if (youTubeManager == null)
            {
                throw new ArgumentNullException("youTubeManager");
            }
            if (sampleDataRetriever == null)
            {
                throw new ArgumentNullException("sampleDataRetriever");
            }

            _sampleDataService   = sampleDataService;
            _youTubeManager      = youTubeManager;
            _sampleDataRetriever = sampleDataRetriever;
        }