Ejemplo n.º 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;
 }
Ejemplo n.º 2
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);
        }