/// <inheritdoc /> public override void Validate(MatchSpecificationValidationContext context) { if (context.Repository.GetStudy(new StudyIdentity(StudyId)) == null) { context.AddError($"{StudyId} is not a valid study"); } }
/// <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"); } }
/// <inheritdoc /> public override void Validate(MatchSpecificationValidationContext context) { if (context.Repository.GetAgency(Agency) == null) { context.AddError($"'{Agency}' is not a valid Agency"); } }