示例#1
0
        public void UpdateArticleKeywords()
        {
            Article article = new Article(23, "my article", "hello world", false, "hello");

            article.Keywords = new List <ArticleKeyword>
            {
                new ArticleKeyword(23, "key11"),
                new ArticleKeyword(24, "word")
            };
            article.Category = new Category(0, "category");

            UpdatingKeyword updatingKeyword = new UpdatingKeyword(_unitofwork);

            updatingKeyword.UpdateArticleKeywords(article);
            _unitofwork.Commit();
        }
示例#2
0
 public UpdatingArticleFacade(IUnitOfWork unitOfWork)
 {
     _updatingBody     = new UpdatingBody(unitOfWork);
     _updatingKeyword  = new UpdatingKeyword(unitOfWork);
     _updatingCategory = new UpdatingCategory(unitOfWork);
 }