コード例 #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));
        }