public void ChangeArticlenumber(Articlenumber articlenumber) { ArticleBusinessRules.CanChangeArticlenumber(articlenumber).Check(this); RaiseEvent(new ArticleArticlenumberChanged(Id, articlenumber, DateTime.UtcNow)); }
public void Activate(string reason) { ArticleBusinessRules.CanActivate(reason).Check(this); RaiseEvent(new ArticleActivated(Id, reason, DateTime.UtcNow)); }
public void AdjustPrice(Money price) { ArticleBusinessRules.CanAdjustPrice(price).Check(this); RaiseEvent(new ArticlePriceAdjusted(Id, price, DateTime.UtcNow)); }