public void GetAllRulesTest() { IList <RuleType> list = businessRuleViwer.GetAllRuleTypes(); businessRuleViwer.GetAllRules(list[0].ID); Assert.Pass(); }
private void FillChilds_GridRules_RulesView(GridNeedChildDataSourceEventArgs e) { if (e.Item.Level == 0) { decimal RuleGroupID = 0; if (HttpContext.Current.Request.QueryString.AllKeys.Contains("RuleGroupID")) { RuleGroupID = decimal.Parse(this.StringBuilder.CreateString(HttpContext.Current.Request.QueryString["RuleGroupID"])); } BRuleViewer RulesViewerBusiness = this.GetRuleViewerBusiness(RuleGroupID); IList <GTS.Clock.Model.Rule> RulesList = RulesViewerBusiness.GetAllRules((decimal)e.Item["ID"]); e.DataSource = RulesList; } }