Skip to content

Commit 2230277

Browse files
committed
Release Aspose.Cells Cloud SDK 20.6
1 parent 483ce2d commit 2230277

File tree

12 files changed

+510
-79
lines changed

12 files changed

+510
-79
lines changed

Aspose.Cells.Cloud.SDK.Test/Api/CellsPageBreaksApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void CellsPageBreaksDeleteHorizontalPageBreaksTest()
7979
// TODO uncomment below to test the method and replace null with proper value
8080
string name = BOOK1;
8181
string sheetName = SHEET1;
82-
int? row = 1;
82+
int? row = 0;
8383
string folder = TEMPFOLDER;
8484
UpdateDataFile(instance,folder, name);
8585
var response = instance.CellsPageBreaksDeleteHorizontalPageBreaks(name, sheetName, row, folder);
@@ -113,7 +113,7 @@ public void CellsPageBreaksDeleteVerticalPageBreaksTest()
113113
// TODO uncomment below to test the method and replace null with proper value
114114
string name = BOOK1;
115115
string sheetName = SHEET1;
116-
int? column = 1;
116+
int? column = 0;
117117
string folder = TEMPFOLDER;
118118
UpdateDataFile(instance,folder, name);
119119
var response = instance.CellsPageBreaksDeleteVerticalPageBreaks(name, sheetName, column, folder);

Aspose.Cells.Cloud.SDK.Test/Api/CellsPivotTablesApiTests.cs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,31 @@ public void CellsPivotTablesDeleteWorksheetPivotTableFilterTest()
9595
string name = PivTestFile;
9696
string sheetName = SHEET4;
9797
int? pivotTableIndex = 0;
98-
int? fieldIndex = 0;
98+
PivotFilter pivotFilter = new PivotFilter();
99+
pivotFilter.FieldIndex = 1;
100+
pivotFilter.FilterType = "Count";
101+
102+
AutoFilter autoFilter = new AutoFilter();
103+
autoFilter.FilterColumns = new List<FilterColumn>();
104+
FilterColumn filterColumn = new FilterColumn();
105+
filterColumn.FilterType = "Top10";
106+
filterColumn.FieldIndex = 0;
107+
108+
filterColumn.Top10Filter = new Top10Filter();
109+
filterColumn.Top10Filter.Items = 1;
110+
filterColumn.Top10Filter.IsTop = true;
111+
filterColumn.Top10Filter.IsPercent = false;
112+
autoFilter.FilterColumns.Add(filterColumn);
113+
pivotFilter.AutoFilter = autoFilter;
114+
99115
bool? needReCalculate = true;
100116
string folder = TEMPFOLDER;
101-
UpdateDataFile(instance,folder, name);
102-
var response = instance.CellsPivotTablesDeleteWorksheetPivotTableFilter(name, sheetName, pivotTableIndex, fieldIndex, needReCalculate, folder);
117+
UpdateDataFile(instance, folder, name);
118+
var response = instance.CellsPivotTablesPutWorksheetPivotTableFilter(name, sheetName, pivotTableIndex, pivotFilter, needReCalculate, folder);
119+
Assert.AreEqual(response.Code, 200);
120+
121+
int? fieldIndex = 0;
122+
response = instance.CellsPivotTablesDeleteWorksheetPivotTableFilter(name, sheetName, pivotTableIndex, fieldIndex, needReCalculate, folder);
103123
Assert.IsInstanceOf<CellsCloudResponse>(response, "response is CellsCloudResponse");
104124
Assert.AreEqual(response.Code, 200);
105125
}

Aspose.Cells.Cloud.SDK.Test/Api/CellsTaskApiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void CellsTaskPostRunTaskTest()
6161
string name = BOOK1;
6262
string sheetName = SHEET6;
6363
string folder = TEMPFOLDER;
64-
UpdateDataFile(instance,folder, name);
64+
UpdateDataFile(instance, name);
6565

6666
TaskData taskData = new TaskData();
6767
taskData.Tasks = new List<TaskDescription>();
@@ -71,12 +71,12 @@ public void CellsTaskPostRunTaskTest()
7171
SplitWorkbookTaskParameter param1 = new SplitWorkbookTaskParameter();
7272
param1.DestinationFileFormat = "xlsx";
7373
param1.DestinationFilePosition = new FileSource();
74-
param1.DestinationFilePosition.FilePath = TEMPFOLDER;
74+
param1.DestinationFilePosition.FilePath = "";
7575
param1.DestinationFilePosition.FileSourceType = "CloudFileSystem";
7676
param1.SplitNameRule = "sheetname";
7777
param1.Workbook = new FileSource();
7878
param1.Workbook.FileSourceType = "CloudFileSystem";
79-
param1.Workbook.FilePath = TEMPFOLDER + "\\" + BOOK1;
79+
param1.Workbook.FilePath = BOOK1;
8080
task1.TaskParameter = param1;
8181
taskData.Tasks.Add(task1);
8282
var response = instance.CellsTaskPostRunTask(taskData);

0 commit comments

Comments
 (0)