Skip to content

Commit 879cf74

Browse files
committed
Aspose.Cells.Cloud SDK 19.4
1 parent 18bcc36 commit 879cf74

File tree

8 files changed

+57
-173
lines changed

8 files changed

+57
-173
lines changed

Aspose.Cells-Cloud.nuspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>Aspose.Cells-Cloud</id>
5-
<version>19.3</version>
5+
<version>19.4</version>
66
<title>Aspose.Cells Cloud SDK for .NET</title>
77
<authors>Naeem</authors>
88
<owners>asposecloud</owners>
@@ -17,6 +17,7 @@
1717
</dependencies>
1818
</metadata>
1919
<files>
20-
<file src="Aspose.Cells.Cloud.SDK\bin\Release\Aspose.Cells.Cloud.SDK.dll" target="lib\net4.5.2" />
20+
<file src="Aspose.Cells.Cloud.SDK\bin\Release\net4.5.2\Aspose.Cells.Cloud.SDK.dll" target="lib\net4.5.2" />
21+
<file src="Aspose.Cells.Cloud.SDK\bin\Release\netstandard2.0\Aspose.Cells.Cloud.SDK.dll" target="lib\netstandard2.0" />
2122
</files>
2223
</package>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ public class CellsBaseTest
1414
protected Client.Configuration config;
1515
protected static OAuthApi oauth2 =null;
1616
protected string grantType = "client_credentials";
17-
protected string clientId = "your app sid";
18-
protected string clientSecret = "your app key";
17+
protected string clientId = "66164C51-693E-4904-A121-545961673EC1";
18+
protected string clientSecret = "536e76768419db9585afdd37bb5f7533";
1919
protected static string accesstoken;
2020
protected string refreshtoken;
2121
protected string BOOK1 = "Book1.xlsx";
2222
protected string MYDOC = "myDocument.xlsx";
2323
protected string PivTestFile = "TestCase.xlsx";
24+
protected string PivTestFile2 = "PivTestFile2.xlsx";
2425
protected string TEMPFOLDER = "Temp";
2526
protected string SHEET1 = "Sheet1";
2627
protected string SHEET2 = "Sheet2";

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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
*/
1010

1111
using System;
12-
using System.IO;
1312
using System.Collections.Generic;
14-
using System.Collections.ObjectModel;
15-
using System.Linq;
16-
using System.Reflection;
17-
using RestSharp;
1813
using NUnit.Framework;
1914

2015
using Aspose.Cells.Cloud.SDK.Client;
@@ -432,6 +427,30 @@ public void CellsPivotTablesPutWorksheetPivotTableTest()
432427
Assert.AreEqual(response.Code, 200);
433428
}
434429

430+
/// <summary>
431+
/// Test CellsPivotTablesPutWorksheetPivotTable
432+
/// </summary>
433+
[Test]
434+
public void CellsPivotTablesPutWorksheetPivotTableTest_2()
435+
{
436+
// TODO uncomment below to test the method and replace null with proper value
437+
string name = PivTestFile2;
438+
string sheetName = SHEET3;
439+
CreatePivotTableRequest request = new CreatePivotTableRequest();
440+
request.DestCellName = "C1";
441+
request.Name = "Test";
442+
request.PivotFieldColumns = new List<int?>(){ 0, 1};
443+
request.PivotFieldRows = new List<int?>() { 2, 3 };
444+
request.PivotFieldData = new List<int?>() { 4 };
445+
request.SourceData = "Sheet2!$A$1:$E$8";
446+
request.UseSameSource = false;
447+
448+
string folder = TEMPFOLDER;
449+
UpdateDataFile(folder, name);
450+
var response = instance.CellsPivotTablesPutWorksheetPivotTable(name, sheetName, request, folder, null, null, null, null, null);
451+
Assert.IsInstanceOf<PivotTableResponse>(response, "response is PivotTableResponse");
452+
Assert.AreEqual(response.Code, 200);
453+
}
435454
/// <summary>
436455
/// Test CellsPivotTablesPutWorksheetPivotTableFilter
437456
/// </summary>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public void OAuthPostTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
7474
string grantType = "client_credentials";
75-
string clientId = "xxxxx-xxxx-xxxx-xxxx-xxxxxxx";
76-
string clientSecret = "xxxxxxxxxxxxxxxxxxx";
75+
string clientId = "xxxxxx-693E-xxx-xxx-xxxxxxxxx";
76+
string clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
7777
var response = instance.OAuthPost(grantType, clientId, clientSecret);
7878
Assert.IsInstanceOf<AccessTokenResponse>(response, "response is AccessTokenResponse");
7979
Assert.IsNotNull(response.AccessToken);
Lines changed: 12 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,22 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
Web API Swagger specification
4-
5-
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6-
7-
OpenAPI spec version: 1.0
8-
9-
-->
10-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project Sdk="Microsoft.NET.Sdk">
113
<PropertyGroup>
12-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
13-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
14-
<ProjectGuid>{19F1DEBC-DE5E-4517-8062-F000CD499087}</ProjectGuid>
15-
<OutputType>Library</OutputType>
16-
<AppDesignerFolder>Properties</AppDesignerFolder>
17-
<RootNamespace>Aspose.Cells.Cloud.SDK.Test</RootNamespace>
18-
<AssemblyName>Aspose.Cells.Cloud.SDK.Test</AssemblyName>
19-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
20-
<FileAlignment>512</FileAlignment>
4+
<TargetFrameworks>netcoreapp2.2;net4.5.2</TargetFrameworks>
5+
<IsPackable>false</IsPackable>
6+
<LangVersion>latest</LangVersion>
217
</PropertyGroup>
22-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
23-
<DebugSymbols>true</DebugSymbols>
24-
<DebugType>full</DebugType>
25-
<Optimize>false</Optimize>
26-
<OutputPath>bin\Debug\</OutputPath>
27-
<DefineConstants>DEBUG;TRACE</DefineConstants>
28-
<ErrorReport>prompt</ErrorReport>
29-
<WarningLevel>4</WarningLevel>
30-
</PropertyGroup>
31-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
32-
<DebugType>pdbonly</DebugType>
33-
<Optimize>true</Optimize>
34-
<OutputPath>bin\Release\</OutputPath>
35-
<DefineConstants>TRACE</DefineConstants>
36-
<ErrorReport>prompt</ErrorReport>
37-
<WarningLevel>4</WarningLevel>
38-
</PropertyGroup>
39-
<ItemGroup>
40-
<Reference Include="Aspose.Storage.Cloud.Sdk, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41-
<HintPath>..\packages\Aspose.Storage-Cloud.18.3.0\lib\net20\Aspose.Storage.Cloud.Sdk.dll</HintPath>
42-
</Reference>
43-
<Reference Include="System" />
44-
<Reference Include="System.Core" />
45-
<Reference Include="System.Xml.Linq" />
46-
<Reference Include="System.Data.DataSetExtensions" />
47-
<Reference Include="System.ComponentModel.DataAnnotations" />
48-
<Reference Include="Microsoft.CSharp" />
49-
<Reference Include="System.Data" />
50-
<Reference Include="System.Runtime.Serialization" />
51-
<Reference Include="System.Xml" />
52-
<Reference Include="Newtonsoft.Json">
53-
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
54-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
55-
</Reference>
56-
<Reference Include="RestSharp">
57-
<HintPath Condition="Exists('..\packages')">..\packages\RestSharp.106.2.2\lib\net452\RestSharp.dll</HintPath>
58-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.2.2\lib\net452\RestSharp.dll</HintPath>
59-
</Reference>
60-
<Reference Include="nunit.framework">
61-
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
62-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
63-
</Reference>
8+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'">
9+
<PackageReference Include="Aspose.Storage.Core-Cloud" Version="18.4.0" />
6410
</ItemGroup>
65-
<ItemGroup>
66-
<Compile Include="**\*.cs" Exclude="obj\**" />
11+
<ItemGroup Condition="'$(TargetFramework)' == 'net4.5.2'">
12+
<PackageReference Include="Aspose.Storage-Cloud" Version="18.3.0" />
6713
</ItemGroup>
6814
<ItemGroup>
69-
<None Include="app.config" />
70-
<None Include="packages.config">
71-
<SubType>Designer</SubType>
72-
</None>
15+
<PackageReference Include="nunit" Version="3.11.0" />
16+
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
7318
</ItemGroup>
74-
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
7519
<ItemGroup>
76-
<ProjectReference Include="..\Aspose.Cells.Cloud.SDK\Aspose.Cells.Cloud.SDK.csproj">
77-
<Project>{01EAB971-83A4-45CC-90A9-D216AA78FDAC}</Project>
78-
<Name>Aspose.Cells.Cloud.SDK</Name>
79-
</ProjectReference>
20+
<ProjectReference Include="..\Aspose.Cells.Cloud.SDK\Aspose.Cells.Cloud.SDK.csproj" />
8021
</ItemGroup>
8122
</Project>
Lines changed: 12 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,22 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
Web API Swagger specification
2+
<Project Sdk="Microsoft.NET.Sdk">
43

5-
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6-
7-
OpenAPI spec version: 1.0
8-
9-
-->
10-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
114
<PropertyGroup>
12-
13-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
14-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
15-
<ProjectGuid>{6E3FFD87-CDA6-4BB7-9AD9-1124042FE776}</ProjectGuid>
16-
<OutputType>Library</OutputType>
17-
<AppDesignerFolder>Properties</AppDesignerFolder>
18-
<RootNamespace>Aspose.Cells.Cloud.SDK</RootNamespace>
19-
<AssemblyName>Aspose.Cells.Cloud.SDK</AssemblyName>
20-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
21-
<FileAlignment>512</FileAlignment>
22-
</PropertyGroup>
23-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24-
<DebugSymbols>true</DebugSymbols>
25-
<DebugType>full</DebugType>
26-
<Optimize>false</Optimize>
27-
<OutputPath>bin\Debug\</OutputPath>
28-
<DefineConstants>DEBUG;TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
5+
<TargetFrameworks>net4.5.2;netstandard2.0</TargetFrameworks>
6+
<AssemblyVersion>19.4.0.0</AssemblyVersion>
7+
<FileVersion>19.4.0.0</FileVersion>
8+
<Version>19.4.0</Version>
9+
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
3110
</PropertyGroup>
32-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<ItemGroup>
41-
<Reference Include="System" />
42-
<Reference Include="System.Core" />
43-
<Reference Include="System.Xml.Linq" />
44-
<Reference Include="System.Data.DataSetExtensions" />
45-
<Reference Include="System.ComponentModel.DataAnnotations" />
46-
<Reference Include="Microsoft.CSharp" />
47-
<Reference Include="System.Data" />
48-
<Reference Include="System.Runtime.Serialization" />
49-
<Reference Include="System.Xml" />
50-
<Reference Include="Newtonsoft.Json">
51-
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
52-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
53-
</Reference>
54-
<Reference Include="RestSharp">
55-
<HintPath Condition="Exists('..\packages')">..\packages\RestSharp.106.2.2\lib\net452\RestSharp.dll</HintPath>
56-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.106.2.2\lib\net452\RestSharp.dll</HintPath>
57-
</Reference>
58-
</ItemGroup>
11+
5912
<ItemGroup>
60-
<Compile Include="**\*.cs"
61-
Exclude="obj\**" />
13+
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
14+
<PackageReference Include="RestSharp" Version="106.2.2" />
6215
</ItemGroup>
16+
6317
<ItemGroup>
64-
<None Include="packages.config" />
18+
<Folder Include="Properties\" />
6519
</ItemGroup>
66-
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
20+
6721
</Project>
6822

Aspose.Cells.Cloud.SDK/Client/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public static string Base64Encode(string text)
410410
/// <param name="source">Object to be casted</param>
411411
/// <param name="dest">Target type</param>
412412
/// <returns>Casted object</returns>
413-
public static dynamic ConvertType(dynamic source, Type dest)
413+
public object ConvertType(object source, Type dest)
414414
{
415415
return Convert.ChangeType(source, dest);
416416
}

Aspose.Cells.Cloud.SDK/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)