@@ -145,7 +145,6 @@ public async Task Map()
145145
146146 var options = new TemplateOptions ( ) ;
147147 var context = new TemplateContext ( options ) ;
148- options . MemberAccessStrategy . Register ( new { Title = "a" } . GetType ( ) ) ;
149148
150149 var result = await ArrayFilters . Map ( input , arguments , context ) ;
151150
@@ -169,8 +168,6 @@ public async Task Map_DeepProperties()
169168
170169 var options = new TemplateOptions ( ) ;
171170 var context = new TemplateContext ( options ) ;
172- options . MemberAccessStrategy . Register ( sample . GetType ( ) ) ;
173- options . MemberAccessStrategy . Register ( sample . Title . GetType ( ) ) ;
174171
175172 var result = await ArrayFilters . Map ( input , arguments , context ) ;
176173
@@ -252,7 +249,6 @@ public async Task Sort()
252249
253250 var options = new TemplateOptions ( ) ;
254251 var context = new TemplateContext ( options ) ;
255- options . MemberAccessStrategy . Register ( sample . GetType ( ) , "Title" ) ;
256252
257253 var result = await ArrayFilters . Sort ( input , arguments , context ) ;
258254
@@ -264,9 +260,7 @@ public async Task Sort()
264260 arguments = new FilterArguments ( ) . Add ( new StringValue ( "Address.Zip" ) ) ;
265261
266262 options = new TemplateOptions ( ) ;
267- context = new TemplateContext ( options ) ;
268- options . MemberAccessStrategy . Register ( sample . GetType ( ) , "Address" ) ;
269- options . MemberAccessStrategy . Register ( sample . Address . GetType ( ) , "Zip" ) ;
263+ context = new TemplateContext ( options ) ;
270264
271265 result = await ArrayFilters . Sort ( input , arguments , context ) ;
272266
@@ -408,7 +402,6 @@ public async Task Where()
408402
409403 var options = new TemplateOptions ( ) ;
410404 var context = new TemplateContext ( options ) ;
411- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
412405
413406 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "Pinned" ) ) ;
414407
@@ -446,8 +439,6 @@ public async Task WhereWithTruthy()
446439
447440 var options = new TemplateOptions ( ) ;
448441 var context = new TemplateContext ( options ) ;
449- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
450- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true , Missing = 1 } . GetType ( ) ) ;
451442
452443 // x | where: "Missing"
453444
@@ -494,7 +485,6 @@ public async Task WhereShouldNotThrow()
494485
495486 var options = new TemplateOptions ( ) ;
496487 var context = new TemplateContext ( options ) ;
497- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
498488
499489 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "a.b.c" ) ) ;
500490
@@ -518,7 +508,7 @@ public async Task Sum()
518508
519509 var options = new TemplateOptions ( ) ;
520510 var context = new TemplateContext ( options ) ;
521- options . MemberAccessStrategy . Register ( sample . GetType ( ) , "Value" ) ;
511+ // options.MemberAccessStrategy.Register(sample.GetType(), "Value");
522512
523513 var result = await ArrayFilters . Sum ( input , arguments , context ) ;
524514
@@ -713,11 +703,11 @@ public async Task SumWithDecimalsAndArguments(string filterArgument, decimal exp
713703
714704 var options = new TemplateOptions ( ) ;
715705 var context = new TemplateContext ( options ) ;
716-
717- options . MemberAccessStrategy . Register ( quantityObjectType . GetType ( ) , filterArgument ) ;
718- options . MemberAccessStrategy . Register ( weightObjectType . GetType ( ) , filterArgument ) ;
719- options . MemberAccessStrategy . Register ( quantityAndWeightObjectType . GetType ( ) , filterArgument ) ;
720-
706+
707+ // options.MemberAccessStrategy.Register(quantityObjectType.GetType(), filterArgument);
708+ // options.MemberAccessStrategy.Register(weightObjectType.GetType(), filterArgument);
709+ // options.MemberAccessStrategy.Register(quantityAndWeightObjectType.GetType(), filterArgument);
710+
721711 var result = await ArrayFilters . Sum ( input , arguments , context ) ;
722712
723713 Assert . Equal ( expectedValue , result . ToNumberValue ( ) ) ;
@@ -734,7 +724,6 @@ public async Task Reject()
734724
735725 var options = new TemplateOptions ( ) ;
736726 var context = new TemplateContext ( options ) ;
737- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
738727
739728 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "Pinned" ) ) ;
740729
@@ -771,7 +760,6 @@ public async Task Find()
771760
772761 var options = new TemplateOptions ( ) ;
773762 var context = new TemplateContext ( options ) ;
774- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
775763
776764 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "Pinned" ) ) . Add ( BooleanValue . True ) ;
777765
@@ -822,7 +810,6 @@ public async Task FindIndex()
822810
823811 var options = new TemplateOptions ( ) ;
824812 var context = new TemplateContext ( options ) ;
825- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
826813
827814 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "Pinned" ) ) . Add ( BooleanValue . True ) ;
828815
@@ -873,7 +860,6 @@ public async Task Has()
873860
874861 var options = new TemplateOptions ( ) ;
875862 var context = new TemplateContext ( options ) ;
876- options . MemberAccessStrategy . Register ( new { Title = "a" , Pinned = true } . GetType ( ) ) ;
877863
878864 var arguments1 = new FilterArguments ( ) . Add ( new StringValue ( "Pinned" ) ) . Add ( BooleanValue . True ) ;
879865
0 commit comments