Пример #1
0
 internal static void Validate(GetDependenciesOutput toValidate, IList validated)
 {
     if (validated.Contains(toValidate))
     {
         return;
     }
     validated.Add(toValidate);
     if (toValidate.Dependencies == null || toValidate.Dependencies.Count == 0)
     {
         throw new ArgumentException("Dependencies is required, at least one value must be present");
     }
     foreach (Dependency it in toValidate.Dependencies)
     {
         it.Validate(validated);
     }
 }
Пример #2
0
 public static void Validate(GetDependenciesOutput toValidate)
 {
     Validate(toValidate, new ArrayList());
 }