public ArticleService(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Passed DdContext cannot be null!");
            }

            if (articleFactory == null)
            {
                throw new ArgumentNullException("Passed factory cannot be null!");
            }

            if (commentFactory == null)
            {
                throw new ArgumentNullException("Passed factory cannot be null!");
            }

            this.context        = context;
            this.articleFactory = articleFactory;
            this.commentFactory = commentFactory;
        }
 public ExtendedArticleService(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
     : base(context, articleFactory, commentFactory)
 {
 }
Esempio n. 3
0
 public ArticleServiceMock(ITravelGuideContext context, IArticleFactory articleFactory, IArticleCommentFactory commentFactory)
     : base(context, articleFactory, commentFactory)
 {
 }