コード例 #1
0
ファイル: Entry.cs プロジェクト: plhx/ddd-guestbook-csharp
 public static SavedEntry FromEntry(PostId postId, Entry entry)
 {
     return(new SavedEntry(postId, entry.Name, entry.Message, entry.Timestamp, entry.IPAddress));
 }
コード例 #2
0
ファイル: Entry.cs プロジェクト: plhx/ddd-guestbook-csharp
 public SavedEntry(PostId postId, Name name, Message message, Timestamp timestamp, IPAddress ipAddress)
     : base(name, message, timestamp, ipAddress)
 {
     this.PostId = postId ?? throw new ArgumentNullException(nameof(postId));
 }