protected void When(PostCreatedDomainEvent @event) { Id = @event.AggregateRootId; blogId = @event.BlogId; enabled = true; }
public void Start(Guid blogId, int blogVersion) { Raise(PostCreatedDomainEvent.Create(this, blogId, blogVersion)); }
protected void When(PostCreatedDomainEvent @event) { rating += 1; }