Esempio n. 1
0
        //[TestMethod]
        public void CreateRule_No_Service()
        {
            String strErrorResut = String.Empty;

            CreateRuleService svc = new CreateRuleService();
            CreateRuleReq     req = new CreateRuleReq();

            req.BusinessData.Name       = "rule_1";
            req.BusinessData.Expression = "(R:Admin)";
            req.SecurityProviderName    = SecurityProviderName;
            try
            {
                CreateRuleRes res = svc.Execute(req);
            }
            catch (Exception ex)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }


            Assert.AreEqual <String>(strErrorResut, string.Empty, strErrorResut);
        }
Esempio n. 2
0
        //[TestMethod]
        public void CreateRule_No_Service()
        {
            String strErrorResut = String.Empty;
          
            CreateRuleService svc = new CreateRuleService();
            CreateRuleReq req = new CreateRuleReq();

            req.BusinessData.Name = "rule_1";
            req.BusinessData.Expression = "(R:Admin)";
            req.SecurityProviderName =     SecurityProviderName;
            try
            {
                CreateRuleRes res = svc.Execute(req);

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


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

        }