@@ -107,7 +107,19 @@ public void Test006_Should_Query_Global_Field()
107107
108108 [ TestMethod ]
109109 [ DoNotParallelize ]
110- public async System . Threading . Tasks . Task Test007_Should_Update_Async_Global_Field ( )
110+ public void Test006a_Should_Query_Global_Field_With_ApiVersion ( )
111+ {
112+ ContentstackResponse response = _stack . GlobalField ( apiVersion : "3.2" ) . Query ( ) . Find ( ) ;
113+ GlobalFieldsModel globalField = response . OpenTResponse < GlobalFieldsModel > ( ) ;
114+ Assert . IsNotNull ( response ) ;
115+ Assert . IsNotNull ( globalField ) ;
116+ Assert . IsNotNull ( globalField . Modellings ) ;
117+ Assert . AreEqual ( 1 , globalField . Modellings . Count ) ;
118+ }
119+
120+ [ TestMethod ]
121+ [ DoNotParallelize ]
122+ public async System . Threading . Tasks . Task Test007_Should_Query_Async_Global_Field ( )
111123 {
112124 ContentstackResponse response = await _stack . GlobalField ( ) . Query ( ) . FindAsync ( ) ;
113125 GlobalFieldsModel globalField = response . OpenTResponse < GlobalFieldsModel > ( ) ;
@@ -116,5 +128,17 @@ public async System.Threading.Tasks.Task Test007_Should_Update_Async_Global_Fiel
116128 Assert . IsNotNull ( globalField . Modellings ) ;
117129 Assert . AreEqual ( 1 , globalField . Modellings . Count ) ;
118130 }
131+
132+ [ TestMethod ]
133+ [ DoNotParallelize ]
134+ public async System . Threading . Tasks . Task Test007a_Should_Query_Async_Global_Field_With_ApiVersion ( )
135+ {
136+ ContentstackResponse response = await _stack . GlobalField ( apiVersion : "3.2" ) . Query ( ) . FindAsync ( ) ;
137+ GlobalFieldsModel globalField = response . OpenTResponse < GlobalFieldsModel > ( ) ;
138+ Assert . IsNotNull ( response ) ;
139+ Assert . IsNotNull ( globalField ) ;
140+ Assert . IsNotNull ( globalField . Modellings ) ;
141+ Assert . AreEqual ( 1 , globalField . Modellings . Count ) ;
142+ }
119143 }
120144}
0 commit comments