예제 #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));
 }