Пример #1
0
        IEnumerable <Event> Handle(DeactivateItem cmd)
        {
            CheckIsActive();

            yield return(new InventoryItemDeactivated());
        }
Пример #2
0
        void Handle(DeactivateItem cmd)
        {
            CheckIsActive();

            active = false;
        }