Exemple #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");
     }
 }
Exemple #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");
     }
 }
Exemple #3
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     foreach (var specification in Specifications)
     {
         specification.Validate(context);
     }
 }
Exemple #4
0
 /// <inheritdoc />
 public override void Validate(MatchSpecificationValidationContext context)
 {
     if (context.Repository.GetAgency(Agency) == null)
     {
         context.AddError($"'{Agency}' is not a valid Agency");
     }
 }
Exemple #5
0
 public abstract void Validate(MatchSpecificationValidationContext context);