Esempio n. 1
0
        public void UpdateArticleBody()
        {
            Article article = new Article(23, "my article11", "hello world", false, "hello");

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

            UpdatingBody updatingBody = new UpdatingBody(_unitofwork);

            updatingBody.UpdateArticleBody(article);
            _unitofwork.Commit();
        }
Esempio n. 2
0
 public UpdatingArticleFacade(IUnitOfWork unitOfWork)
 {
     _updatingBody     = new UpdatingBody(unitOfWork);
     _updatingKeyword  = new UpdatingKeyword(unitOfWork);
     _updatingCategory = new UpdatingCategory(unitOfWork);
 }