Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotKeyWordsService"/> class.
 /// </summary>
 /// <param name="searchInfo">The search info.</param>
 public HotKeyWordsService(Miaow.Domain.Repository.ISearchInfoRepository searchInfo)
 {
     if (searchInfo == null)
     {
         throw new ArgumentNullException("searchInfoRepository is null");
     }
     searchInfoRepository = searchInfo;
 }
Пример #2
0
 public SearchController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     Miaow.Application.dj.Service.ISearchService MiaowSearchServer,
     Miaow.Domain.Repository.ISearchInfoRepository searchInfo)
     : base(work)
 {
     if (MiaowSearchServer == null)
     {
         throw new ArgumentNullException("searchService is null");
     }
     if (searchInfo == null)
     {
         throw new ArgumentNullException("searchInfoReopsitory is null");
     }
     searchService = MiaowSearchServer;
     searchInfoReopsitory = searchInfo;
 }