Skip to content

Commit 9c94f1e

Browse files
[TASKSCLOUD-508] - Deployed new 21.2 version.
1 parent 5e56fce commit 9c94f1e

File tree

6 files changed

+33
-13
lines changed

6 files changed

+33
-13
lines changed

Aspose.Tasks.Cloud.Sdk.Tests/Base/BaseTestContext.cs

+9-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ protected BaseTestContext()
5858
throw new FileNotFoundException("servercreds.json doesn't contain AppKey and AppSid");
5959
}
6060

61-
var configuration = new Configuration { ApiBaseUrl = BaseProductUri, AppKey = this.keys.AppKey, AppSid = this.keys.AppSid, AuthUrl = this.keys.AuthUrl };
61+
var configuration = new Configuration
62+
{
63+
ApiBaseUrl = this.keys.BaseUrl ?? BaseProductUri,
64+
AppKey = this.keys.AppKey,
65+
AppSid = this.keys.AppSid,
66+
AuthUrl = this.keys.AuthUrl
67+
};
6268
this.TasksApi = new TasksApi(configuration);
6369
clearingRequests = new List<DeleteRequest>();
6470
}
@@ -154,6 +160,8 @@ private class Keys
154160
public string AppKey { get; set; }
155161

156162
public string AuthUrl { get; set; }
163+
164+
public string BaseUrl { get; set; }
157165
}
158166
}
159167
}

Aspose.Tasks.Cloud.Sdk.Tests/Resources/TestResources.cs

+12-4
Original file line numberDiff line numberDiff line change
@@ -155,25 +155,33 @@ public async Task TestEditResource()
155155
[Test]
156156
public async Task TestDeleteResource()
157157
{
158-
var remoteName = await UploadFileToStorageAsync("Home move plan.mpp");
158+
var remoteName = await UploadFileToStorageAsync("Plan with resource.mpp");
159+
160+
var resourceResponse = await TasksApi.GetResourcesAsync(new GetResourcesRequest
161+
{
162+
Name = remoteName,
163+
Folder = this.DataFolder
164+
});
165+
166+
var resourceCountBeforeDelete = resourceResponse.Resources.ResourceItem.Count;
159167

160168
var deleteResponse = await TasksApi.DeleteResourceAsync(new DeleteResourceRequest
161169
{
162170
Name = remoteName,
163171
Folder = this.DataFolder,
164-
ResourceUid = 0
172+
ResourceUid = 1
165173
});
166174

167175
Assert.AreEqual((int)HttpStatusCode.OK, deleteResponse.Code);
168176

169-
var resourceResponse = await TasksApi.GetResourcesAsync(new GetResourcesRequest
177+
resourceResponse = await TasksApi.GetResourcesAsync(new GetResourcesRequest
170178
{
171179
Name = remoteName,
172180
Folder = this.DataFolder
173181
});
174182

175183
Assert.AreEqual((int)HttpStatusCode.OK, resourceResponse.Code);
176-
Assert.AreEqual(0, resourceResponse.Resources.ResourceItem.Count);
184+
Assert.Greater(resourceCountBeforeDelete, resourceResponse.Resources.ResourceItem.Count);
177185
}
178186
}
179187
}
Binary file not shown.

Aspose.Tasks.Cloud.Sdk/Aspose.Tasks.Cloud.Sdk.nuspec

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>Aspose.Tasks-Cloud</id>
5-
<version>20.11</version>
5+
<version>21.2</version>
66
<title>Aspose.Tasks Cloud SDK for .NET</title>
77
<summary>Aspose.Tasks Cloud SDK allows developer to manipulate or convert Microsoft Project documents hosted on a cloud platform from .NET applications</summary>
88
<authors>Aspose</authors>
@@ -14,11 +14,9 @@
1414
<description>New generation of Aspose Cloud SDK that allows to manipulate or convert Microsoft Project documents hosted on a cloud platform from .NET applications. It allows you to work with all aspects of a Project document including conversion. The API offers a wide range of Microsoft Project export options. The Aspose.Tasks Cloud API allows developers to convert Project documents to various formats including XML, HTML, BMP, PNG, PDF, and XSLX.
1515
</description>
1616
<releaseNotes>
17-
* Add an ability to create multiple tasks in single api call.
18-
19-
The complete list of changes can be found at https://github.com/aspose-tasks/Aspose.Tasks-Documentation/blob/master/cloud/release-notes/release-notes-2020/aspose-tasks-cloud-20-11-release-notes/_index.md
17+
The complete list of changes can be found at https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-docs/blob/master/tasks/release-notes/release-notes-2021/aspose-tasks-cloud-21-2-release-notes/_index.md
2018
</releaseNotes>
21-
<copyright>Aspose 2002-2020. All Rights Reserved.</copyright>
19+
<copyright>Aspose 2002-2021. All Rights Reserved.</copyright>
2220
<tags>MPP Primavera Microsoft Project Server Online P6XML PrimaveraXML XER MPX</tags>
2321
<dependencies>
2422
<dependency id="Newtonsoft.Json" version="12.0.1" />

Aspose.Tasks.Cloud.Sdk/Model/Task.cs

+6
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ public class Task
613613
/// </summary>
614614
public bool Warning { get; set; }
615615

616+
/// <summary>
617+
/// Represents activity id field - a task's unique identifier used by Primavera (only applicable to Primavera projects).
618+
/// </summary>
619+
public string ActivityId { get; set; }
620+
616621
/// <summary>
617622
/// Get the string presentation of the object
618623
/// </summary>
@@ -734,6 +739,7 @@ public override string ToString()
734739
sb.Append(" ExtendedAttributes: ").Append(this.ExtendedAttributes).Append("\n");
735740
sb.Append(" OutlineCodes: ").Append(this.OutlineCodes).Append("\n");
736741
sb.Append(" Warning: ").Append(this.Warning).Append("\n");
742+
sb.Append(" ActivityId: ").Append(this.ActivityId).Append("\n");
737743
sb.Append("}\n");
738744
return sb.ToString();
739745
}

Aspose.Tasks.Cloud.Sdk/Properties/AssemblyInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
[assembly: AssemblyConfiguration("")]
3636
[assembly: AssemblyCompany("")]
3737
[assembly: AssemblyProduct("Aspose.Tasks.Cloud.Sdk.Properties")]
38-
[assembly: AssemblyCopyright("Copyright © 2020")]
38+
[assembly: AssemblyCopyright("Copyright © 2021")]
3939
[assembly: AssemblyTrademark("")]
4040
[assembly: AssemblyCulture("")]
4141

@@ -53,5 +53,5 @@
5353
// Minor Version
5454
// Build Number
5555
// Revision
56-
[assembly: AssemblyVersion("20.11.0.0")]
57-
[assembly: AssemblyFileVersion("20.11.0.0")]
56+
[assembly: AssemblyVersion("21.2.0.0")]
57+
[assembly: AssemblyFileVersion("21.2.0.0")]

0 commit comments

Comments
 (0)