Beispiel #1
0
 public VideosController(IVideoCatalogService videoCatalog, IUserManagementService userManagement, IStatisticsService stats,
                         IRatingsService ratings, ISuggestVideos suggestions)
 {
     if (videoCatalog == null)
     {
         throw new ArgumentNullException("videoCatalog");
     }
     if (userManagement == null)
     {
         throw new ArgumentNullException("userManagement");
     }
     if (stats == null)
     {
         throw new ArgumentNullException("stats");
     }
     if (ratings == null)
     {
         throw new ArgumentNullException("ratings");
     }
     if (suggestions == null)
     {
         throw new ArgumentNullException("suggestions");
     }
     _videoCatalog   = videoCatalog;
     _userManagement = userManagement;
     _stats          = stats;
     _ratings        = ratings;
     _suggestions    = suggestions;
 }
 public VideosController(IVideoCatalogService videoCatalog, IUserManagementService userManagement, IStatisticsService stats,
                         IRatingsService ratings, ISuggestVideos suggestions)
 {
     if (videoCatalog == null) throw new ArgumentNullException("videoCatalog");
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     if (stats == null) throw new ArgumentNullException("stats");
     if (ratings == null) throw new ArgumentNullException("ratings");
     if (suggestions == null) throw new ArgumentNullException("suggestions");
     _videoCatalog = videoCatalog;
     _userManagement = userManagement;
     _stats = stats;
     _ratings = ratings;
     _suggestions = suggestions;
 }