public ArticleContentViewComponent(PersonService personService, TagService tagService, TopicService topicService, PostService postService, ZanService zanService, FavoriteService favoriteService)
 {
     this.personService   = personService ?? throw new ArgumentNullException(nameof(personService));
     this.tagService      = tagService ?? throw new ArgumentNullException(nameof(tagService));
     this.topicService    = topicService ?? throw new ArgumentNullException(nameof(topicService));
     this.postService     = postService ?? throw new ArgumentNullException(nameof(postService));
     this.zanService      = zanService ?? throw new ArgumentNullException(nameof(zanService));
     this.favoriteService = favoriteService ?? throw new ArgumentNullException(nameof(favoriteService));
 }
 public CommentItemViewComponent(DbFactory dbFactory, ZanService zanService)
 {
     this.dbFactory  = dbFactory ?? throw new ArgumentNullException(nameof(dbFactory));
     this.zanService = zanService ?? throw new ArgumentNullException(nameof(zanService));
 }
Esempio n. 3
0
 public LikeController(ZanService zanService, PostService postService, CommentService commentService)
 {
     this.zanService     = zanService ?? throw new ArgumentNullException(nameof(zanService));
     this.postService    = postService ?? throw new ArgumentNullException(nameof(postService));
     this.commentService = commentService ?? throw new ArgumentNullException(nameof(commentService));
 }