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)); }
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)); }