Esempio n. 1
0
        public void Disable()
        {
            if (enabled == false)
            {
                throw new DomainException("The blog is already disabled.");
            }

            Raise(BlogDisabledDomainEvent.Create(this));
        }
Esempio n. 2
0
 protected void When(BlogDisabledDomainEvent @event)
 {
     enabled = false;
 }