Skip to content

Commit c19ce55

Browse files
committed
Release Aspose.Cells Cloud SDK 20.9
1 parent a22c60c commit c19ce55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+4064
-473
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
namespace Aspose.Cells.Cloud.SDK.Test
32
{
43
using System;
@@ -23,7 +22,7 @@ public class CellsApiTests : CellsBaseTest
2322
[SetUp]
2423
public void Init()
2524
{
26-
instance = new CellsApi(clientId, clientSecret);
25+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
2726
}
2827

2928
/// <summary>
@@ -66,9 +65,8 @@ public void CellsDeleteWorksheetColumnsForNewConstructorTest()
6665
int? columns = 1;
6766
bool? updateReference = true;
6867
string folder = TEMPFOLDER;
69-
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
70-
var instanceNew = new CellsApi( clientId, clientSecret);
71-
var response = instanceNew.CellsDeleteWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder);
68+
UpdateDataFile(instance,TEMPFOLDER, BOOK1);
69+
var response = instance.CellsDeleteWorksheetColumns(name, sheetName, columnIndex, columns, updateReference, folder);
7270
Assert.IsInstanceOf<ColumnsResponse>(response, "response is ColumnsResponse");
7371
Assert.AreEqual(response.Code, 200);
7472
}
@@ -746,7 +744,6 @@ public void CellsPostWorksheetCellSetValueTest(string Value, string Type, string
746744
string type = Type;
747745
string formula = Formula;
748746
string folder = TEMPFOLDER;
749-
UpdateDataFile(instance, TEMPFOLDER, BOOK1);
750747
var response = instance.CellsPostWorksheetCellSetValue(name, sheetName, cellName, value, type, formula, folder);
751748
Assert.IsInstanceOf<CellResponse>(response, "response is CellResponse");
752749
Assert.AreEqual(response.Status, "OK");

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
namespace Aspose.Cells.Cloud.SDK.Test
2-
{
3-
using NUnit.Framework;
4-
using Aspose.Cells.Cloud.SDK.Api;
5-
using Aspose.Cells.Cloud.SDK.Model;
1+
using System;
2+
using System.Collections.Generic;
3+
using NUnit.Framework;
4+
using Aspose.Cells.Cloud.SDK.Api;
5+
using Aspose.Cells.Cloud.SDK.Model;
66

7+
namespace Aspose.Cells.Cloud.SDK.Test
8+
{
79
/// <summary>
810
/// Class for testing CellsApi
911
/// </summary>
@@ -36,7 +38,7 @@ public void Cleanup()
3638
/// <summary>
3739
/// Test CellsDeleteWorksheetColumns
3840
/// </summary>
39-
[Test]
41+
[Ignore("QA server is not supported v1.1.")]
4042
public void CellsDeleteWorksheetColumnsTestFor11()
4143
{
4244
// TODO uncomment below to test the method and replace null with proper value

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using NUnit.Framework;
12+
using Aspose.Cells.Cloud.SDK.Api;
13+
using Aspose.Cells.Cloud.SDK.Model;
14+
115
namespace Aspose.Cells.Cloud.SDK.Test
216
{
3-
using NUnit.Framework;
4-
using Aspose.Cells.Cloud.SDK.Api;
5-
using Aspose.Cells.Cloud.SDK.Model;
6-
717
/// <summary>
818
/// Class for testing CellsAutoFilterApi
919
/// </summary>
@@ -21,7 +31,7 @@ public class CellsAutoFilterApiTests :CellsBaseTest
2131
[SetUp]
2232
public void Init()
2333
{
24-
instance = new CellsApi( clientId, clientSecret);;
34+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
2535
}
2636

2737
/// <summary>

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
namespace Aspose.Cells.Cloud.SDK.Test
2-
{
3-
4-
using NUnit.Framework;
5-
using Aspose.Cells.Cloud.SDK.Api;
6-
using Aspose.Cells.Cloud.SDK.Model;
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
710

11+
using NUnit.Framework;
12+
using Aspose.Cells.Cloud.SDK.Api;
13+
using Aspose.Cells.Cloud.SDK.Model;
814

15+
namespace Aspose.Cells.Cloud.SDK.Test
16+
{
917
/// <summary>
1018
/// Class for testing CellsAutoshapesApi
1119
/// </summary>
@@ -24,7 +32,7 @@ public class CellsAutoshapesApiTests :CellsBaseTest
2432
[SetUp]
2533
public void Init()
2634
{
27-
instance = new CellsApi( clientId, clientSecret);
35+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
2836
}
2937

3038
/// <summary>

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

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ namespace Aspose.Cells.Cloud.SDK.Test
66
using System.IO;
77
public class CellsBaseTest
88
{
9+
protected string testbaseurl = @"https://api-qa.aspose.cloud";
10+
protected string apiVersion = @"v3.0";
911
protected ApiClient client;
1012
protected Client.Configuration config;
1113
protected string grantType = "client_credentials";
12-
protected string clientId = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx";
13-
protected string clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxx";
14+
protected string clientId = "91A2FD07-BBA1-4B32-9112-ABFB1FE8AEBD";
15+
protected string clientSecret = "0fbf678c5ecabdb5caca48452a736dd0";
1416
protected static string accesstoken;
1517
protected string refreshtoken;
1618
protected string BOOK1 = "Book1.xlsx";
@@ -29,25 +31,38 @@ public class CellsBaseTest
2931
protected string CellName = "A1";
3032
protected string RANGE = "A1:C10";
3133
protected string CELLAREA = "A1:C10";
32-
private string TestDataFolder = @"D:\Projects\Aspose\Aspose.Cloud\Aspose.Cells.Cloud.SDK\src\TestData\";
34+
private string TestDataFolder = @"D:\Projects\Aspose\Aspose.Cells.Cloud.SDK\src\TestData\";
3335

3436
protected void UpdateDataFile( CellsApi cellsApi, string folder, string filename)
3537
{
36-
cellsApi.DeleteFile(folder + @"\" + filename);
38+
bool? exist = cellsApi.ObjectExists(folder + @"\" + filename).Exists;
39+
if (exist.HasValue && exist.Value)
40+
{
41+
cellsApi.DeleteFile(folder + @"\" + filename);
42+
}
3743
Stream stream = GetTestDataStream(filename);
3844
var response = cellsApi.UploadFile(folder + @"\" + filename, stream);
3945
}
4046
protected void UpdateDataFile(CellsApi cellsApi, string filename)
4147
{
48+
bool? exist = cellsApi.ObjectExists( filename).Exists;
49+
if (exist.HasValue && exist.Value)
50+
{
51+
cellsApi.DeleteFile(filename);
52+
}
4253
cellsApi.DeleteFile( filename);
4354
Stream stream = GetTestDataStream(filename);
4455
var response = cellsApi.UploadFile( filename, stream);
4556
}
46-
protected void UpdateDataFileForDropBox(CellsApi cellsApi, string folder, string filename)
57+
protected void UpdateDataFileToOtherStorage(CellsApi cellsApi, string folder, string filename,string stroageName)
4758
{
48-
cellsApi.DeleteFile(folder + @"\" + filename, "DropBox");
59+
bool? exist = cellsApi.ObjectExists(folder + @"\" + filename, stroageName).Exists;
60+
if (exist.HasValue && exist.Value)
61+
{
62+
cellsApi.DeleteFile(folder + @"\" + filename, stroageName);
63+
}
4964
Stream stream = GetTestDataStream(filename);
50-
var response = cellsApi.UploadFile(folder + @"\" + filename, stream, "DropBox");
65+
var response = cellsApi.UploadFile(folder + @"\" + filename, stream, stroageName);
5166
}
5267

5368
protected Stream GetTestDataStream( string filename)

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

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
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;
18+
using NUnit.Framework;
19+
20+
using Aspose.Cells.Cloud.SDK.Client;
21+
using Aspose.Cells.Cloud.SDK.Api;
22+
using Aspose.Cells.Cloud.SDK.Model;
123

224
namespace Aspose.Cells.Cloud.SDK.Test
325
{
4-
using NUnit.Framework;
5-
using Aspose.Cells.Cloud.SDK.Api;
6-
using Aspose.Cells.Cloud.SDK.Model;
7-
826
/// <summary>
927
/// Class for testing CellsChartAreaApi
1028
/// </summary>
@@ -22,7 +40,7 @@ public class CellsChartAreaApiTests : CellsBaseTest
2240
[SetUp]
2341
public void Init()
2442
{
25-
instance = new CellsApi( clientId, clientSecret);;
43+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);;
2644
}
2745

2846
/// <summary>

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1-
namespace Aspose.Cells.Cloud.SDK.Test
2-
{
3-
using NUnit.Framework;
4-
using Aspose.Cells.Cloud.SDK.Api;
5-
using Aspose.Cells.Cloud.SDK.Model;
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
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;
18+
using NUnit.Framework;
619

20+
using Aspose.Cells.Cloud.SDK.Client;
21+
using Aspose.Cells.Cloud.SDK.Api;
22+
using Aspose.Cells.Cloud.SDK.Model;
723

24+
namespace Aspose.Cells.Cloud.SDK.Test
25+
{
826
/// <summary>
927
/// Class for testing CellsChartsApi
1028
/// </summary>
@@ -22,7 +40,7 @@ public class CellsChartsApiTests:CellsBaseTest
2240
[SetUp]
2341
public void Init()
2442
{
25-
instance = new CellsApi( clientId, clientSecret);
43+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
2644
}
2745

2846
/// <summary>

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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
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;
18+
using NUnit.Framework;
19+
20+
using Aspose.Cells.Cloud.SDK.Client;
21+
using Aspose.Cells.Cloud.SDK.Api;
22+
using Aspose.Cells.Cloud.SDK.Model;
23+
124
namespace Aspose.Cells.Cloud.SDK.Test
225
{
3-
using NUnit.Framework;
4-
using Aspose.Cells.Cloud.SDK.Api;
5-
using Aspose.Cells.Cloud.SDK.Model;
6-
726
/// <summary>
827
/// Class for testing CellsConditionalFormattingsApi
928
/// </summary>
@@ -21,7 +40,7 @@ public class CellsConditionalFormattingsApiTests:CellsBaseTest
2140
[SetUp]
2241
public void Init()
2342
{
24-
instance = new CellsApi( clientId, clientSecret);;
43+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);;
2544
}
2645

2746
/// <summary>

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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
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;
18+
using NUnit.Framework;
19+
20+
using Aspose.Cells.Cloud.SDK.Client;
21+
using Aspose.Cells.Cloud.SDK.Api;
22+
using Aspose.Cells.Cloud.SDK.Model;
23+
124
namespace Aspose.Cells.Cloud.SDK.Test
225
{
3-
using NUnit.Framework;
4-
using Aspose.Cells.Cloud.SDK.Api;
5-
using Aspose.Cells.Cloud.SDK.Model;
6-
726
/// <summary>
827
/// Class for testing CellsHypelinksApi
928
/// </summary>
@@ -21,7 +40,7 @@ public class CellsHypelinksApiTests : CellsBaseTest
2140
[SetUp]
2241
public void Init()
2342
{
24-
instance = new CellsApi( clientId, clientSecret);
43+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);
2544
}
2645

2746
/// <summary>

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

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1+
/*
2+
* Web API Swagger specification
3+
*
4+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5+
*
6+
* OpenAPI spec version: 1.0
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
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;
18+
using NUnit.Framework;
19+
20+
using Aspose.Cells.Cloud.SDK.Client;
21+
using Aspose.Cells.Cloud.SDK.Api;
22+
using Aspose.Cells.Cloud.SDK.Model;
123

224
namespace Aspose.Cells.Cloud.SDK.Test
325
{
4-
using NUnit.Framework;
5-
using Aspose.Cells.Cloud.SDK.Api;
6-
using Aspose.Cells.Cloud.SDK.Model;
7-
using System.Collections.Generic;
8-
926
/// <summary>
1027
/// Class for testing CellsListObjectsApi
1128
/// </summary>
@@ -23,7 +40,7 @@ public class CellsListObjectsApiTests:CellsBaseTest
2340
[SetUp]
2441
public void Init()
2542
{
26-
instance = new CellsApi( clientId, clientSecret);;
43+
instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl);;
2744
}
2845

2946
/// <summary>

0 commit comments

Comments
 (0)