Exemplo n.º 1
0
 public static SavedEntry FromEntry(PostId postId, Entry entry)
 {
     return(new SavedEntry(postId, entry.Name, entry.Message, entry.Timestamp, entry.IPAddress));
 }
Exemplo n.º 2
0
 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));
 }