コード例 #1
0
 public BookCreated(Guid id, BookInfo bookInfo)
 {
     Id       = id;
     BookInfo = bookInfo;
 }
コード例 #2
0
 public Book(BookInfo bookInfo) : base(Guid.NewGuid())
 {
     OnEventHappened(new BookCreated(Id, bookInfo));
 }