Пример #1
0
        public void ChangeArticlenumber(Articlenumber articlenumber)
        {
            ArticleBusinessRules.CanChangeArticlenumber(articlenumber).Check(this);

            RaiseEvent(new ArticleArticlenumberChanged(Id, articlenumber, DateTime.UtcNow));
        }
Пример #2
0
        public void Activate(string reason)
        {
            ArticleBusinessRules.CanActivate(reason).Check(this);

            RaiseEvent(new ArticleActivated(Id, reason, DateTime.UtcNow));
        }
Пример #3
0
        public void AdjustPrice(Money price)
        {
            ArticleBusinessRules.CanAdjustPrice(price).Check(this);

            RaiseEvent(new ArticlePriceAdjusted(Id, price, DateTime.UtcNow));
        }