Exemple #1
0
        public void Test_GetForceTechniques_WithOutOrderBy_NoResult()
        {
            string strWhere   = "ForceTechniqueName Like '%Toad%'";
            string strOrderBy = "";

            ForceTechnique        objForceTechnique  = new ForceTechnique();
            List <ForceTechnique> lstForceTechniques = new List <ForceTechnique>();

            lstForceTechniques = objForceTechnique.GetForceTechniques(strWhere, strOrderBy);

            Assert.IsTrue(lstForceTechniques.Count == 0);
        }
        private void LoadTreeView()
        {
            this.tvForceTechnique.Nodes.Clear();

            List <ForceTechnique> lstForceTechniques = new List <ForceTechnique>();
            ForceTechnique        objFS = new ForceTechnique();

            lstForceTechniques = objFS.GetForceTechniques("", "");

            foreach (ForceTechnique objListForceTechnique in lstForceTechniques)
            {
                TreeNode objTN = new TreeNode();
                objTN.Text = objListForceTechnique.ForceTechniqueName;
                objTN.Tag  = objListForceTechnique.ForceTechniqueID;
                tvForceTechnique.Nodes.Add(objTN);
            }
        }