Exemple #1
0
 internal static void Validate(HelloWorldOutput toValidate, IList validated)
 {
     if (validated.Contains(toValidate))
     {
         return;
     }
     validated.Add(toValidate);
     if (toValidate.HelloWorldMessage == null)
     {
         throw new ArgumentException("HelloWorldMessage is required");
     }
 }
Exemple #2
0
 public static void Validate(HelloWorldOutput toValidate)
 {
     Validate(toValidate, new ArrayList());
 }