/// <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; }
public ArticleInfoService(iPow.Domain.Repository.IArticleInfoRepository articleInfo) { if (articleInfo == null) { throw new ArgumentNullException(" articleInfoRepository is null"); } articleInfoRepository = articleInfo; }
public ArticleInfoService( iPow.Domain.Repository.IArticleInfoRepository articleInfo) { if (articleInfo == null) { throw new ArgumentNullException(" articleInfoRepository is null"); } articleInfoRepository = articleInfo; }