-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
content-type
field to sign request (#850)
* feat: add field to sign request
- Loading branch information
1 parent
cafa53c
commit 054d3e1
Showing
6 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,9 @@ public async Task CreateSignRequest_RequiredParams_Success() | |
Assert.AreEqual(1, response.Signers.Count); | ||
Assert.AreEqual("[email protected]", response.Signers[0].Email); | ||
Assert.AreEqual("12345", response.ParentFolder.Id); | ||
Assert.AreEqual(1, response.Signers[0].Inputs.Count); | ||
Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value); | ||
Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType); | ||
} | ||
|
||
[TestMethod] | ||
|
@@ -153,6 +156,9 @@ public async Task CreateSignRequest_OptionalParams_Success() | |
Assert.AreEqual("12345", response.SourceFiles[0].Id); | ||
Assert.AreEqual(1, response.Signers.Count); | ||
Assert.AreEqual("[email protected]", response.Signers[0].Email); | ||
Assert.AreEqual(1, response.Signers[0].Inputs.Count); | ||
Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value); | ||
Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType); | ||
Assert.AreEqual("12345", response.ParentFolder.Id); | ||
Assert.IsTrue(response.IsDocumentPreparationNeeded); | ||
Assert.IsTrue(response.AreRemindersEnabled); | ||
|
@@ -236,6 +242,9 @@ public async Task GetSignRequestById_Success() | |
Assert.AreEqual("12345", response.SourceFiles[0].Id); | ||
Assert.AreEqual(1, response.Signers.Count); | ||
Assert.AreEqual("[email protected]", response.Signers[0].Email); | ||
Assert.AreEqual(1, response.Signers[0].Inputs.Count); | ||
Assert.IsTrue(response.Signers[0].Inputs[0].CheckboxValue.Value); | ||
Assert.AreEqual(BoxSignRequestSingerInputContentType.checkbox, response.Signers[0].Inputs[0].ContentType); | ||
Assert.AreEqual("12345", response.ParentFolder.Id); | ||
Assert.IsTrue(response.IsDocumentPreparationNeeded); | ||
Assert.IsTrue(response.AreRemindersEnabled); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters