예제 #1
0
        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);
        }