Beispiel #1
0
        public void Test_GetForceTechnique_ByID_BadResult()
        {
            int            intForceTechniqueID = 0;
            ForceTechnique objForceTechnique   = new ForceTechnique();

            objForceTechnique.GetForceTechnique(intForceTechniqueID);

            Assert.IsNull(objForceTechnique.ForceTechniqueName);
        }
Beispiel #2
0
        public void Test_GetForceTechnique_ByName_BadResult()
        {
            string         strForceTechniqueName = "blah blah";
            ForceTechnique objForceTechnique     = new ForceTechnique();

            objForceTechnique.GetForceTechnique(strForceTechniqueName);

            Assert.IsNull(objForceTechnique.ForceTechniqueName);
        }
Beispiel #3
0
        public void Test_GetForceTechnique_ByID_GoodResult()
        {
            int            intForceTechniqueID = 1;
            ForceTechnique objForceTechnique   = new ForceTechnique();

            objForceTechnique.GetForceTechnique(intForceTechniqueID);

            Assert.AreEqual(intForceTechniqueID, objForceTechnique.ForceTechniqueID);
        }
Beispiel #4
0
        public void Test_GetForceTechnique_ByName_GoodResult()
        {
            string         strForceTechniqueName = "Force Point Recovery";
            ForceTechnique objForceTechnique     = new ForceTechnique();

            objForceTechnique.GetForceTechnique(strForceTechniqueName);

            Assert.AreEqual(strForceTechniqueName, objForceTechnique.ForceTechniqueName);
        }
        public void SetForcePowerFields(string strTag)
        {
            int intTag;

            int.TryParse(strTag, out intTag);

            if (intTag != 0)
            {
                ForceTechnique objFS = new ForceTechnique();
                objFS.GetForceTechnique(intTag);

                this.txtForceTechniqueName.Text        = objFS.ForceTechniqueName;
                this.txtForceTechniqueDescription.Text = objFS.ForceTechniqueDescription;
            }
        }