public BookCreated(Guid id, BookInfo bookInfo) { Id = id; BookInfo = bookInfo; }
public Book(BookInfo bookInfo) : base(Guid.NewGuid()) { Assert.IsValid(bookInfo); OnEvent(new BookCreated(Id, bookInfo)); }
public BookCreated(Guid id, BookInfo bookInfo) { Id = id; BookInfo = bookInfo; }
public Book(BookInfo bookInfo) : base(Guid.NewGuid()) { Assert.IsValid(bookInfo); OnEvent(new BookCreated(Id, bookInfo)); }