public void UpdateUrl(Url url) { if (enabled == false) { throw new DomainException("The blog is disabled. Enable this before making any changes."); } Raise(BlogUrlUpdatedDomainEvent.Create(this, url)); }
protected void When(BlogUrlUpdatedDomainEvent @event) { url = @event.Url; }