88 * Generated by: https://github.com/swagger-api/swagger-codegen.git
99 */
1010
11- using System ;
12- using System . IO ;
13- using System . Collections . Generic ;
14- using System . Collections . ObjectModel ;
15- using System . Linq ;
16- using System . Reflection ;
17- using RestSharp ;
1811using NUnit . Framework ;
19-
20- using Aspose . Cells . Cloud . SDK . Client ;
2112using Aspose . Cells . Cloud . SDK . Api ;
2213using Aspose . Cells . Cloud . SDK . Model ;
2314
@@ -33,14 +24,14 @@ namespace Aspose.Cells.Cloud.SDK.Test
3324 [ TestFixture ]
3425 public class CellsAutoFilterApiTests : CellsBaseTest
3526 {
36- private CellsAutoFilterApi instance ;
27+ private CellsApi instance ;
3728 /// <summary>
3829 /// Setup before each unit test
3930 /// </summary>
4031 [ SetUp ]
4132 public void Init ( )
4233 {
43- instance = new CellsAutoFilterApi ( GetConfiguration ( ) ) ;
34+ instance = new CellsApi ( clientId , clientSecret ) ; ;
4435 }
4536
4637 /// <summary>
@@ -52,17 +43,7 @@ public void Cleanup()
5243
5344 }
5445
55- /// <summary>
56- /// Test an instance of CellsAutoFilterApi
57- /// </summary>
58- [ Test ]
59- public void InstanceTest ( )
60- {
61- // TODO uncomment below to test 'IsInstanceOfType' CellsAutoFilterApi
62- Assert . IsInstanceOf ( typeof ( CellsAutoFilterApi ) , instance , "instance is a CellsAutoFilterApi" ) ;
63- }
64-
65-
46+
6647 /// <summary>
6748 /// Test CellsAutoFilterDeleteWorksheetDateFilter
6849 /// </summary>
@@ -81,9 +62,9 @@ public void CellsAutoFilterDeleteWorksheetDateFilterTest()
8162 int ? minute = 1 ;
8263 int ? second = 1 ;
8364 string folder = TEMPFOLDER ;
84- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
65+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
8566 var response = instance . CellsAutoFilterDeleteWorksheetDateFilter ( name , sheetName , fieldIndex , dateTimeGroupingType , year , month , day , hour , minute , second , folder ) ;
86- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
67+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
8768 Assert . AreEqual ( response . Code , 200 ) ;
8869 }
8970
@@ -99,9 +80,9 @@ public void CellsAutoFilterDeleteWorksheetFilterTest()
9980 int ? fieldIndex = 1 ;
10081 string criteria = "test" ;
10182 string folder = TEMPFOLDER ;
102- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
83+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
10384 var response = instance . CellsAutoFilterDeleteWorksheetFilter ( name , sheetName , fieldIndex , criteria , folder ) ;
104- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
85+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
10586 Assert . AreEqual ( response . Code , 200 ) ;
10687 }
10788
@@ -115,7 +96,7 @@ public void CellsAutoFilterGetWorksheetAutoFilterTest()
11596 string name = BOOK1 ;
11697 string sheetName = SHEET1 ;
11798 string folder = TEMPFOLDER ;
118- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
99+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
119100 var response = instance . CellsAutoFilterGetWorksheetAutoFilter ( name , sheetName , folder ) ;
120101 Assert . IsInstanceOf < AutoFilterResponse > ( response , "response is AutoFilterResponse" ) ;
121102 Assert . AreEqual ( response . Code , 200 ) ;
@@ -131,9 +112,9 @@ public void CellsAutoFilterPostWorksheetAutoFilterRefreshTest()
131112 string name = BOOK1 ;
132113 string sheetName = SHEET1 ;
133114 string folder = TEMPFOLDER ;
134- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
115+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
135116 var response = instance . CellsAutoFilterPostWorksheetAutoFilterRefresh ( name , sheetName , folder ) ;
136- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
117+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
137118 Assert . AreEqual ( response . Code , 200 ) ;
138119 }
139120
@@ -148,9 +129,9 @@ public void CellsAutoFilterPostWorksheetMatchBlanksTest()
148129 string sheetName = SHEET1 ;
149130 int ? fieldIndex = 0 ;
150131 string folder = TEMPFOLDER ;
151- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
132+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
152133 var response = instance . CellsAutoFilterPostWorksheetMatchBlanks ( name , sheetName , fieldIndex , folder ) ;
153- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
134+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
154135 Assert . AreEqual ( response . Code , 200 ) ;
155136 }
156137
@@ -165,9 +146,9 @@ public void CellsAutoFilterPostWorksheetMatchNonBlanksTest()
165146 string sheetName = SHEET1 ;
166147 int ? fieldIndex = 0 ;
167148 string folder = TEMPFOLDER ;
168- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
149+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
169150 var response = instance . CellsAutoFilterPostWorksheetMatchNonBlanks ( name , sheetName , fieldIndex , folder ) ;
170- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
151+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
171152 Assert . AreEqual ( response . Code , 200 ) ;
172153 }
173154
@@ -193,9 +174,9 @@ public void CellsAutoFilterPutWorksheetColorFilterTest()
193174 bool ? matchBlanks = true ;
194175 bool ? refresh = true ;
195176 string folder = TEMPFOLDER ;
196- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
177+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
197178 var response = instance . CellsAutoFilterPutWorksheetColorFilter ( name , sheetName , range , fieldIndex , colorFilter , matchBlanks , refresh , folder ) ;
198- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
179+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
199180 Assert . AreEqual ( response . Code , 200 ) ;
200181 }
201182
@@ -218,9 +199,9 @@ public void CellsAutoFilterPutWorksheetCustomFilterTest()
218199 bool ? matchBlanks = true ;
219200 bool ? refresh = false ;
220201 string folder = TEMPFOLDER ;
221- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
202+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
222203 var response = instance . CellsAutoFilterPutWorksheetCustomFilter ( name , sheetName , range , fieldIndex , operatorType1 , criteria1 , isAnd , operatorType2 , criteria2 , matchBlanks , refresh , folder ) ;
223- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
204+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
224205 Assert . AreEqual ( response . Code , 200 ) ;
225206 }
226207
@@ -245,9 +226,9 @@ public void CellsAutoFilterPutWorksheetDateFilterTest()
245226 bool ? matchBlanks = true ;
246227 bool ? refresh = true ;
247228 string folder = TEMPFOLDER ;
248- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
229+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
249230 var response = instance . CellsAutoFilterPutWorksheetDateFilter ( name , sheetName , range , fieldIndex , dateTimeGroupingType , year , month , day , hour , minute , second , matchBlanks , refresh , folder ) ;
250- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
231+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
251232 Assert . AreEqual ( response . Code , 200 ) ;
252233 }
253234
@@ -266,9 +247,9 @@ public void CellsAutoFilterPutWorksheetDynamicFilterTest()
266247 bool ? matchBlanks = true ;
267248 bool ? refresh = true ;
268249 string folder = TEMPFOLDER ;
269- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
250+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
270251 var response = instance . CellsAutoFilterPutWorksheetDynamicFilter ( name , sheetName , range , fieldIndex , dynamicFilterType , matchBlanks , refresh , folder ) ;
271- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
252+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
272253 Assert . AreEqual ( response . Code , 200 ) ;
273254 }
274255
@@ -287,9 +268,9 @@ public void CellsAutoFilterPutWorksheetFilterTest()
287268 bool ? matchBlanks = true ;
288269 bool ? refresh = true ;
289270 string folder = TEMPFOLDER ;
290- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
271+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
291272 var response = instance . CellsAutoFilterPutWorksheetFilter ( name , sheetName , range , fieldIndex , criteria , matchBlanks , refresh , folder ) ;
292- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
273+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
293274 Assert . AreEqual ( response . Code , 200 ) ;
294275 }
295276
@@ -310,9 +291,9 @@ public void CellsAutoFilterPutWorksheetFilterTop10Test()
310291 bool ? matchBlanks = null ;
311292 bool ? refresh = null ;
312293 string folder = TEMPFOLDER ;
313- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
294+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
314295 var response = instance . CellsAutoFilterPutWorksheetFilterTop10 ( name , sheetName , range , fieldIndex , isTop , isPercent , itemCount , matchBlanks , refresh , folder ) ;
315- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
296+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
316297 Assert . AreEqual ( response . Code , 200 ) ;
317298 }
318299
@@ -332,9 +313,9 @@ public void CellsAutoFilterPutWorksheetIconFilterTest()
332313 bool ? matchBlanks = null ;
333314 bool ? refresh = null ;
334315 string folder = TEMPFOLDER ;
335- UpdateDataFile ( TEMPFOLDER , BOOK1 ) ;
316+ UpdateDataFile ( instance , TEMPFOLDER , BOOK1 ) ;
336317 var response = instance . CellsAutoFilterPutWorksheetIconFilter ( name , sheetName , range , fieldIndex , iconSetType , iconId , matchBlanks , refresh , folder ) ;
337- Assert . IsInstanceOf < SaaSposeResponse > ( response , "response is SaaSposeResponse " ) ;
318+ Assert . IsInstanceOf < CellsCloudResponse > ( response , "response is CellsCloudResponse " ) ;
338319 Assert . AreEqual ( response . Code , 200 ) ;
339320 }
340321
0 commit comments