Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArticleService"/> class.
 /// </summary>
 /// <param name="articleInfo">The article info.</param>
 public ArticleService(iPow.Domain.Repository.IArticleInfoRepository articleInfo,
      iPow.Domain.Repository.ISightInfoRepository sightInfo,
     iPow.Domain.Repository.IArticleCommRepository articleComm,
     iPow.Domain.Repository.IArticleClassRepository articleClass,
     iPow.Application.jq.Service.ISightInfoService sis
     )
 {
     if (articleInfo == null)
     {
         throw new ArgumentNullException("articleInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleclassrepository is null");
     }
     if (articleClass == null)
     {
         throw new ArgumentNullException("articlecommrepository is null");
     }
     if (sis == null)
     {
         throw new ArgumentNullException("sightinfoservice is null");
     }
     articleInfoRepository = articleInfo;
     sightInfoRepository = sightInfo;
     articleCommRepository = articleComm;
     articleClassRepository = articleClass;
     sightInfoService = sis;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArticleService"/> class.
 /// </summary>
 /// <param name="articleInfo">The article info.</param>
 public ArticleService(iPow.Domain.Repository.IArticleInfoRepository articleInfo,
                       iPow.Domain.Repository.ISightInfoRepository sightInfo,
                       iPow.Domain.Repository.IArticleCommRepository articleComm,
                       iPow.Domain.Repository.IArticleClassRepository articleClass,
                       iPow.Application.jq.Service.ISightInfoService sis
                       )
 {
     if (articleInfo == null)
     {
         throw new ArgumentNullException("articleInfoRepository is null");
     }
     if (sightInfo == null)
     {
         throw new ArgumentNullException("sightinforepository is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleclassrepository is null");
     }
     if (articleClass == null)
     {
         throw new ArgumentNullException("articlecommrepository is null");
     }
     if (sis == null)
     {
         throw new ArgumentNullException("sightinfoservice is null");
     }
     articleInfoRepository  = articleInfo;
     sightInfoRepository    = sightInfo;
     articleCommRepository  = articleComm;
     articleClassRepository = articleClass;
     sightInfoService       = sis;
 }
Example #3
0
 public ArticleCommService(iPow.Domain.Repository.IArticleCommRepository articleComm)
 {
     if (articleComm == null)
     {
         throw new ArgumentNullException(" articleCommRepository   is null");
     }
     articleCommRepository = articleComm;
 }
Example #4
0
 public ArticleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                          iPow.Application.jq.Service.IArticleService article,
                          iPow.Domain.Repository.IArticleCommRepository articleComm)
     : base(work)
 {
     if (article == null)
     {
         throw new ArgumentNullException("articleService is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleCommRepository is null");
     }
     articleService        = article;
     articleCommRepository = articleComm;
 }
Example #5
0
 public ArticleController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Application.jq.Service.IArticleService article,
     iPow.Domain.Repository.IArticleCommRepository articleComm)
     : base(work)
 {
     if (article == null)
     {
         throw new ArgumentNullException("articleService is null");
     }
     if (articleComm == null)
     {
         throw new ArgumentNullException("articleCommRepository is null");
     }
     articleService = article;
     articleCommRepository = articleComm;
 }