Exemple #1
0
 public static NGCTResult GetResult(string pantherNGResult, string pantherCTResult)
 {
     NGCTResult result = null;
     if (pantherNGResult == PantherNGPositiveResult || pantherCTResult == PantherCTPositiveResult)
     {
         result = new NGCTOneOrBothPositiveResult(pantherNGResult, pantherCTResult);
     }
     else if (pantherNGResult == PantherNGInvalidResult || pantherCTResult == PantherCTInvalidResult)
     {
         result = new NGCTInvalidResult();
     }
     else
     {
         result = new NGCTBotNegativeResult();
     }
     return result;
 }
        public static NGCTResult GetResult(string pantherNGResult, string pantherCTResult)
        {
            NGCTResult result = null;

            if (pantherNGResult == PantherNGPositiveResult || pantherCTResult == PantherCTPositiveResult)
            {
                result = new NGCTOneOrBothPositiveResult(pantherNGResult, pantherCTResult);
            }
            else if (pantherNGResult == PantherNGInvalidResult || pantherCTResult == PantherCTInvalidResult)
            {
                result = new NGCTInvalidResult();
            }
            else
            {
                result = new NGCTBotNegativeResult();
            }
            return(result);
        }