Пример #1
0
        public void Deactivate(string reason)
        {
            CustomersBusinessRules.CanDeactivate().Check(this);

            RaiseEvent(new CustomerDeactivated(Id, reason, DateTime.UtcNow));
        }
Пример #2
0
        public void Rename(string name)
        {
            CustomersBusinessRules.CanRename(name).Check(this);

            RaiseEvent(new CustomerRenamed(Id, name, DateTime.UtcNow));
        }