/// <summary> /// Initializes a new instance of the <see cref="PicInfoService"/> class. /// </summary> /// <param name="picInfo">The pic info.</param> /// <param name="picComm">The pic comm.</param> /// <param name="picClass">The pic class.</param> public PicInfoService(Miaow.Domain.Repository.IPicInfoRepository picInfo, Miaow.Domain.Repository.IPicCommRepository picComm, Miaow.Domain.Repository.IPicClassRepository picClass, Miaow.Application.jq.Service.ISightInfoService sis) { if (picInfo == null) { throw new ArgumentNullException("picinforepository is null"); } if (picComm == null) { throw new ArgumentNullException("piccommrepository is null"); } if (picClass == null) { throw new ArgumentNullException("picclassrepository is null"); } if (sis == null) { throw new ArgumentNullException("sightinfoservice is null"); } picInfoRepository = picInfo; picCommRepository = picComm; picClassRepository = picClass; sightInfoService = sis; }
public PicCommService( Miaow.Domain.Repository.IPicCommRepository picComm) { if (picComm == null) { throw new ArgumentNullException(" picCommRepository is null"); } picCommRepository = picComm; }
public PicController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Application.jq.Service.IPicInfoService MiaowPicInfo, Miaow.Domain.Repository.IPicCommRepository picComm) : base(work) { if (MiaowPicInfo == null) { throw new ArgumentNullException("picInfoService is null"); } if (picComm == null) { throw new ArgumentNullException("picInfoRepository is null"); } picInfoService = MiaowPicInfo; picCommRepository = picComm; }