Пример #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(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;
 }
Пример #2
0
 public PicClassService( Miaow.Domain.Repository.IPicClassRepository picClass)
 {
     if (picClass == null)
         {
             throw new ArgumentNullException(" picClassRepository   is null");
         }
         picClassRepository = picClass;
 }