Esempio n. 1
0
        public void DecreaseSharesBy(int numberOfShares)
        {
            NumberOfShares -= numberOfShares;

            var decreasedShareEvent = new MemberShareUpdatedEvent(this, MemberShareUpdateType.Decreased);

            DomainEvents.Raise(decreasedShareEvent);
        }
Esempio n. 2
0
        public void IncreaseSharesBy(int numberOfShares)
        {
            NumberOfShares += numberOfShares;

            var increasedShareEvent = new MemberShareUpdatedEvent(this, MemberShareUpdateType.Increased);

            DomainEvents.Raise(increasedShareEvent);
        }