-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathGetUserDocuments.cs
More file actions
29 lines (26 loc) · 900 Bytes
/
GetUserDocuments.cs
File metadata and controls
29 lines (26 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace SignNow.Net.Examples
{
public partial class UserExamples
{
[TestMethod]
public async Task GetUserDocumentsAsync()
{
// Get user documents, first 25 documents
var signNowDocuments = await testContext.Users
.GetUserDocumentsAsync(perPage:25)
.ConfigureAwait(false);
// Check if the documents are owned by the user
var userDocuments = signNowDocuments.ToList();
foreach (var document in userDocuments)
{
Assert.AreEqual(credentials.Login, document.Owner);
}
Assert.IsNotNull(userDocuments.Count);
Console.WriteLine($@"Total modified documents: {userDocuments.Count}");
}
}
}