public OnTheBeachJobStarter(IValidator validator) { Validator = validator; // Rule to Validate Input Validator.AddInputRule(ValidationRuleType.IsEmpty); Validator.AddInputRule(ValidationRuleType.IsValidInputPattern); Validator.AddInputRule(ValidationRuleType.AreInputJobsSelfJoined); // Rule to Validate Output Validator.AddOutputRule(ValidationRuleType.CheckCircularReference); }