diff --git a/Protocol/Tests/Protocol/Params/Param/ArrayOptions/CheckIndexAttribute.cs b/Protocol/Tests/Protocol/Params/Param/ArrayOptions/CheckIndexAttribute.cs index 61d39416..6f3b17d0 100644 --- a/Protocol/Tests/Protocol/Params/Param/ArrayOptions/CheckIndexAttribute.cs +++ b/Protocol/Tests/Protocol/Params/Param/ArrayOptions/CheckIndexAttribute.cs @@ -89,14 +89,16 @@ internal class ValidateHelper : ValidateHelperBase private readonly RelationManager relationManager; private readonly IParamsParam tableParam; + private readonly IParamsParamArrayOptions arrayOptions; private readonly IValueTag indexAttribute; public ValidateHelper(IValidate test, ValidatorContext context, List results, IParamsParam tableParam, IParamsParamArrayOptions arrayOptions) : base(test, context, results) { this.tableParam = tableParam; - this.relationManager = context.ProtocolModel.RelationManager; - this.indexAttribute = arrayOptions.Index; + this.arrayOptions = arrayOptions; + relationManager = context.ProtocolModel.RelationManager; + indexAttribute = arrayOptions.Index; } public void Validate() @@ -106,7 +108,7 @@ public void Validate() // Missing if (status.HasFlag(GenericStatus.Missing)) { - results.Add(Error.MissingAttribute(test, tableParam, indexAttribute, tableParam.Id.RawValue)); + results.Add(Error.MissingAttribute(test, tableParam, arrayOptions, tableParam.Id.RawValue)); return; }