Example #1
0
        public void DeleteRulesCategory_No_Service(int id)
        {
            String strErrorResut           = String.Empty;
            DeleteRulesCategoryService svc = new DeleteRulesCategoryService();
            DeleteRulesCategoryReq     req = new DeleteRulesCategoryReq();
            DeleteRulesCategoryRes     res = new DeleteRulesCategoryRes();

            req.SecurityProviderName    = SecurityProviderName;
            req.BusinessData.CategoryId = id;


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

            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
Example #2
0
        public void DeleteRulesCategory_No_Service(int id)
        {
     
           
            String strErrorResut = String.Empty;
            DeleteRulesCategoryService svc = new DeleteRulesCategoryService();
            DeleteRulesCategoryReq req = new DeleteRulesCategoryReq();
            DeleteRulesCategoryRes res = new DeleteRulesCategoryRes();
            req.SecurityProviderName = SecurityProviderName;
            req.BusinessData.CategoryId = id;
    

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

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


        }