public static FwkCategoryList SearchAllRulesCategory() { SearchAllRulesCategoryReq req = new SearchAllRulesCategoryReq(); SearchAllRulesCategoryRes res = req.ExecuteService <SearchAllRulesCategoryReq, SearchAllRulesCategoryRes>(WrapperSecurityProvider, req); if (res.Error != null) { throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); } return(res.BusinessData); }
public void SearchAllRulesCategory_No_Service() { String strErrorResut = String.Empty; SearchAllRulesCategoryReq req = new SearchAllRulesCategoryReq(); SearchAllRulesCategoryRes res; SearchAllRulesCategoryService svc = new SearchAllRulesCategoryService(); req.SecurityProviderName = SecurityProviderName; try { res = svc.Execute(req); } catch (Exception ex) { strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex); } Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut); }
public static FwkCategoryList SearchAllRulesCategory() { SearchAllRulesCategoryReq req = new SearchAllRulesCategoryReq(); SearchAllRulesCategoryRes res = req.ExecuteService<SearchAllRulesCategoryReq, SearchAllRulesCategoryRes>(WrapperSecurityProvider,req); if (res.Error != null) throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error); return res.BusinessData; }
public void SearchAllRulesCategory_No_Service() { String strErrorResut = String.Empty; SearchAllRulesCategoryReq req = new SearchAllRulesCategoryReq(); SearchAllRulesCategoryRes res; SearchAllRulesCategoryService svc = new SearchAllRulesCategoryService(); req.SecurityProviderName = SecurityProviderName; try { res = svc.Execute(req); } catch (Exception ex) { strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex); } Assert.AreEqual<String>(strErrorResut, string.Empty, strErrorResut); }