//[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); }
//[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); }