Example #1
0
 public static bool isRunOK(this M_testDemand td)
 {
     if (td.isRun == true && td.noRunCaseNum() == 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        public static int noRunCaseNum(this M_testDemand td)
        {
            QCTESTEntities QC_DB = new QCTESTEntities();

            return(QC_DB.M_runTestCase.Where(t => t.M_runScene.M_testDemand.ID == td.ID && t.state == null).Count());
        }