コード例 #1
0
ファイル: PostDetailView.cs プロジェクト: luhis/shitforum
 public PostContextView(Guid threadId, string threadSubject, BoardOverView board, PostOverView post)
 {
     ThreadId      = EnsureArg.IsNotEmpty(threadId, nameof(threadId));
     ThreadSubject = EnsureArg.IsNotNull(threadSubject, nameof(threadSubject));
     Board         = EnsureArg.IsNotNull(board, nameof(board));
     Post          = EnsureArg.IsNotNull(post, nameof(post));
 }
コード例 #2
0
ファイル: ThreadDetailView.cs プロジェクト: luhis/shitforum
 public ThreadDetailView(Guid threadId, string subject, ThreadStats stats, BoardOverView board, IReadOnlyList <PostOverView> posts)
 {
     ThreadId   = EnsureArg.IsNotEmpty(threadId, nameof(threadId));
     Subject    = EnsureArg.IsNotNull(subject, nameof(subject));
     Stats      = EnsureArg.IsNotNull(stats, nameof(stats));
     this.Board = EnsureArg.IsNotNull(board, nameof(board));
     Posts      = EnsureArg.IsNotNull(posts, nameof(posts));
 }