예제 #1
0
        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));
        }
예제 #2
0
 protected void When(BlogUrlUpdatedDomainEvent @event)
 {
     url = @event.Url;
 }