Exemplo n.º 1
0
        public void UpdateArticleWithNewCategory()
        {
            Article article = new Article(23, "my article", "hello world", false, "hello");

            article.Category = new Category(0, Helper.RandomString(5));
            UpdatingCategory update = new UpdatingCategory(_unitofwork);

            update.UpdateArticleCategory(article);
            _unitofwork.Commit();
        }
Exemplo n.º 2
0
        public void UpdateArticleCategory()
        {
            Article article = new Article(23, "my article", "hello world", false, "hello");

            article.Category = new Category(0, "cat");
            UpdatingCategory update = new UpdatingCategory(_unitofwork);

            update.UpdateArticleCategory(article);
            _unitofwork.Commit();
        }
Exemplo n.º 3
0
 public UpdatingArticleFacade(IUnitOfWork unitOfWork)
 {
     _updatingBody     = new UpdatingBody(unitOfWork);
     _updatingKeyword  = new UpdatingKeyword(unitOfWork);
     _updatingCategory = new UpdatingCategory(unitOfWork);
 }