예제 #1
0
        public void Test_GetArmorTypes_WithOutOrderBy_NoResult()
        {
            string strWhere   = "ArmorTypeName Like '%Toad%'";
            string strOrderBy = "ArmorTypeName";

            ArmorType        objArmorType  = new ArmorType();
            List <ArmorType> lstArmorTypes = new List <ArmorType>();

            lstArmorTypes = objArmorType.GetArmorTypes(strWhere, strOrderBy);

            Assert.IsTrue(lstArmorTypes.Count == 0);
        }
예제 #2
0
        public void FillDropDownLists()
        {
            cmbArmorType.Items.Clear();

            ArmorType armorType = new ArmorType();

            armorTypes = armorType.GetArmorTypes("", "ArmorTypeName");
            cmbArmorType.Items.Add("");
            foreach (ArmorType lstArmorType in armorTypes)
            {
                cmbArmorType.Items.Add(lstArmorType.ArmorTypeName);
            }
            if (dbconn.Open)
            {
                dbconn.CloseDatabaseConnection();
            }
        }