/// <summary> /// Initializes a new instance of the <see cref="ArticleService"/> class. /// </summary> /// <param name="articleInfo">The article info.</param> public ArticleService(Miaow.Domain.Repository.IArticleInfoRepository articleInfo, Miaow.Domain.Repository.ISightInfoRepository sightInfo, Miaow.Domain.Repository.IArticleCommRepository articleComm, Miaow.Domain.Repository.IArticleClassRepository articleClass, Miaow.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 ArticleCommService( Miaow.Domain.Repository.IArticleCommRepository articleComm) { if (articleComm == null) { throw new ArgumentNullException(" articleCommRepository is null"); } articleCommRepository = articleComm; }
public ArticleController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.jq.Service.IArticleService article, Miaow.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; }