You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nested embedded properties generally works, but validation rules does not work.
See for example:
namespaceExamplePLugin{[Display("Embedded Properties Issue")]publicclassEmbeddedPropertiesDebug:TestStep{[EmbedProperties]publicParmObj1Obj1{get;set;}=new ParmObj1();publicoverridevoidRun(){thrownew NotImplementedException();}}publicclassParmObj1:ValidatingObject{publicintMyValue{get;set;}[EmbedProperties]publicParmObj2obj2{get;set;}=new ParmObj2();publicboolCheckValue(){returnMyValue>0&&MyValue<100;}publicParmObj1(){
Rules.Add(CheckValue,"MyValue must be in range 0 to 100", nameof(MyValue));}}publicclassParmObj2:ValidatingObject{publicintMyValue{get;set;}publicboolCheckValue(){returnMyValue>0&&MyValue<100;}publicParmObj2(){
Rules.Add(CheckValue,"MyValue must be in range 0 to 100", nameof(MyValue));}}}[Display("Embedded Properties Issue")]publicclassEmbeddedPropertiesDebug:TestStep{[EmbedProperties]publicParmObj1Obj1{get;set;}=new ParmObj1();publicoverridevoidRun(){thrownew NotImplementedException();}}
The text was updated successfully, but these errors were encountered:
Nested embedded properties generally works, but validation rules does not work.
See for example:
The text was updated successfully, but these errors were encountered: