Пример #1
0
        public SearchAllRulesRes SearchAllRules()
        {
            String strErrorResut = String.Empty;

            SearchAllRulesReq     req = new SearchAllRulesReq();
            SearchAllRulesRes     res = new SearchAllRulesRes();
            SearchAllRulesService svc = new SearchAllRulesService();

            req.SecurityProviderName = SecurityProviderName;



            try
            {
                res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);

            return(res);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static FwkAuthorizationRuleList SearchAllRules()
        {
            SearchAllRulesReq req = new SearchAllRulesReq();

            req.CacheSettings.CacheOnClientSide = false;
            SearchAllRulesRes res = req.ExecuteService <SearchAllRulesReq, SearchAllRulesRes>(WrapperSecurityProvider, req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData);
        }
Пример #3
0
        public void SearchAllRulesService_No_Service()
        {
            String strErrorResut = String.Empty;

            SearchAllRulesReq     req = new SearchAllRulesReq();
            SearchAllRulesRes     res = new SearchAllRulesRes();
            SearchAllRulesService svc = new SearchAllRulesService();

            //res.ContextInformation.CompanyId = "pelsoft";
            //req.SecurityProviderName = "tesa";
            req.SecurityProviderName = SecurityProviderName;

            try
            {
                res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
Пример #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static FwkAuthorizationRuleList SearchAllRules()
        {
            SearchAllRulesReq req = new SearchAllRulesReq();

            req.CacheSettings.CacheOnClientSide = false;
            SearchAllRulesRes res = req.ExecuteService<SearchAllRulesReq, SearchAllRulesRes>(WrapperSecurityProvider,req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

            return res.BusinessData;
        }
Пример #5
0
        public SearchAllRulesRes SearchAllRules()
        {
            String strErrorResut = String.Empty;

            SearchAllRulesReq req = new SearchAllRulesReq();
            SearchAllRulesRes res = new SearchAllRulesRes();
            SearchAllRulesService svc = new SearchAllRulesService();
            req.SecurityProviderName = SecurityProviderName;
  


            try
            {

                res = svc.Execute(req);
                

            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


            Assert.AreEqual<String>(strErrorResut, string.Empty, strErrorResut);

            return res;
        }
Пример #6
0
        public void SearchAllRulesService_No_Service()
        {
            String strErrorResut = String.Empty;

            SearchAllRulesReq req = new SearchAllRulesReq();
            SearchAllRulesRes res = new SearchAllRulesRes();
            SearchAllRulesService svc = new SearchAllRulesService();
            //res.ContextInformation.CompanyId = "pelsoft";
            //req.SecurityProviderName = "tesa";
            req.SecurityProviderName = SecurityProviderName;

            try
            {

                res = svc.Execute(req);


            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


            Assert.AreEqual<String>(strErrorResut, string.Empty, strErrorResut);


        }