public SearchResultsViewModel(SearchModel searchModel, RedirectModel redirectModel, IApplicationBrandingModel brandingModel)
 {
     if (string.IsNullOrWhiteSpace(searchModel.Search))
     {
         throw new ArgumentNullException();
     }
     if (string.IsNullOrWhiteSpace(searchModel.Url))
     {
         throw new ArgumentNullException();
     }
     if (redirectModel == null)
     {
         throw new ArgumentNullException();
     }
     SearchModel = searchModel;
     RedirectModel = redirectModel;
     BrandingModel = brandingModel;
 }
Beispiel #2
0
 public SearchResultsViewModel(SearchModel searchModel, RedirectModel redirectModel, IApplicationBrandingModel brandingModel)
 {
     if (string.IsNullOrWhiteSpace(searchModel.Search))
     {
         throw new ArgumentNullException();
     }
     if (string.IsNullOrWhiteSpace(searchModel.Url))
     {
         throw new ArgumentNullException();
     }
     if (redirectModel == null)
     {
         throw new ArgumentNullException();
     }
     SearchModel   = searchModel;
     RedirectModel = redirectModel;
     BrandingModel = brandingModel;
 }