public void Disable() { if (enabled == false) { throw new DomainException("The blog is already disabled."); } Raise(BlogDisabledDomainEvent.Create(this)); }
protected void When(BlogDisabledDomainEvent @event) { enabled = false; }