예제 #1
0
 public VideoHandler(IVideoRepository videoRepo, IRatingRepository _ratingRepo, IReaderJson readerJson, IWriterJson writerJson, ICalculator calculator, ICategoryManager categoryManager, IRatingSettings settings, IJsonAddRepository jsonAddRepository)
 {
     this.videoRepo         = videoRepo ?? throw new NullReferenceException();
     this.ratingRepo        = _ratingRepo ?? throw new NullReferenceException();
     this.jsonReader        = readerJson ?? throw new NullReferenceException();
     this.calculator        = calculator ?? throw new NullReferenceException();
     this.categoryManager   = categoryManager ?? throw new NullReferenceException();
     this.settings          = settings ?? throw new NullReferenceException();
     this.jsonAddRepository = jsonAddRepository ?? throw new NullReferenceException();
     writer = writerJson ?? throw new NullReferenceException();
 }
예제 #2
0
 public VideoAssignHandler(IVideoRepository videoRepo, IReaderJson readerJson)
 {
     this.videoRepo = videoRepo ?? throw new NullReferenceException();
     this.reader    = readerJson ?? throw new NullReferenceException();
 }