Пример #1
0
 /// <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(iPow.Domain.Repository.IPicInfoRepository picInfo,
                       iPow.Domain.Repository.IPicCommRepository picComm,
                       iPow.Domain.Repository.IPicClassRepository picClass,
                       iPow.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;
 }
Пример #2
0
 /// <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(iPow.Domain.Repository.IPicInfoRepository picInfo,
     iPow.Domain.Repository.IPicCommRepository picComm,
     iPow.Domain.Repository.IPicClassRepository picClass,
     iPow.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;
 }