示例#1
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     foreach (var valueDto in Identifiers.Where(_ => !context.Registry.IsValidIdentifierType(_)))
     {
         context.AddError($"'{valueDto.SystemName}' is not a valid identifier name");
     }
 }
示例#2
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     if (context.Repository.GetStudy(new StudyIdentity(StudyId)) == null)
     {
         context.AddError($"{StudyId} is not a valid study");
     }
 }
示例#3
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     foreach (var specification in Specifications)
     {
         specification.Validate(context);
     }
 }
示例#4
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     if (context.Repository.GetAgency(Agency) == null)
     {
         context.AddError($"'{Agency}' is not a valid Agency");
     }
 }
示例#5
0
 public abstract void Validate(MatchSpecificationValidationContext context);