Ejemplo n.º 1
0
        public void TestSetup()
        {
            businessCategory   = new BRuleCategory();
            ruleCat_testObject = new RuleCategory();

            Convert.ToInt32(personTA.InsertQuery("0000", "Ali", true, null));
            int personId = Convert.ToInt32(personTA.GetDataByBarcode("0000").Rows[0]["prs_ID"]);


            ruleCatTA.Insert("دسته قانون000", "0000", false, "00-00test1");
            table           = ruleCatTA.GetDataByName("دسته قانون000");
            AdoRuleCat.ID   = (Decimal)table[0]["RuleCat_ID"];
            AdoRuleCat.Name = (String)table[0]["RuleCat_Name"];

            prsRleCatAsgTA.Insert(personId, AdoRuleCat.ID, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortDateString(), DateTime.Now);

            ruleCAtPartTA.Insert(businessCategory.GetRoot().ID, AdoRuleCat.ID, true);

            ClearSession();
        }
Ejemplo n.º 2
0
        public void RootIsNotNullTest()
        {
            RuleCategory root = businessCategory.GetRoot();

            Assert.IsNotNull(root);
        }