Skip to content

Commit 5d5ac04

Browse files
SIGNATURENET-3846: Check, Fix and Update all types of tests before 22.06 release
1 parent c2f1a2f commit 5d5ac04

8 files changed

Lines changed: 27 additions & 19 deletions

File tree

Examples/GroupDocs.Signature.Examples.CSharp.Core/GroupDocs.Signature.Examples.CSharp.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Import Project="..\GroupDocs.Signature.Examples.CSharp\GroupDocs.Signature.Examples.CSharp.projitems" Label="Shared" />
99

1010
<ItemGroup>
11-
<PackageReference Include="GroupDocs.Signature" Version="22.4.0" />
11+
<PackageReference Include="GroupDocs.Signature" Version="22.6.0" />
1212
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
1313
</ItemGroup>
1414

Examples/GroupDocs.Signature.Examples.CSharp.Core/RunExamples.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ static void Main(string[] args)
427427

428428
#region Cancellation of signing, verification, searching process
429429
CancellationSignProcess.Run();
430+
430431
CancellationVerifyProcess.Run();
431432
CancellationSearchProcess.Run();
432433
#endregion

Examples/GroupDocs.Signature.Examples.CSharp.Framework/GroupDocs.Signature.Examples.CSharp.Framework.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@
5454
<Reference Include="AWSSDK.S3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604, processorArchitecture=MSIL">
5555
<HintPath>..\packages\AWSSDK.S3.3.3.110.10\lib\net45\AWSSDK.S3.dll</HintPath>
5656
</Reference>
57-
<Reference Include="GroupDocs.Signature, Version=22.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
58-
<HintPath>..\packages\GroupDocs.Signature.22.4.0\lib\net20\GroupDocs.Signature.dll</HintPath>
59-
<Private>True</Private>
57+
<Reference Include="GroupDocs.Signature, Version=22.6.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
58+
<HintPath>..\packages\GroupDocs.Signature.22.6.0\lib\net40\GroupDocs.Signature.dll</HintPath>
6059
</Reference>
6160
<Reference Include="Microsoft.Azure.KeyVault.Core, Version=3.0.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6261
<HintPath>..\packages\Microsoft.Azure.KeyVault.Core.3.0.4\lib\net461\Microsoft.Azure.KeyVault.Core.dll</HintPath>

Examples/GroupDocs.Signature.Examples.CSharp.Framework/RunExamples.cs

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ static void Main(string[] args)
1818
QuickStart.SetLicenseFromFile.Run();
1919
//QuickStart.SetLicenseFromStream.Run();
2020
//QuickStart.SetMeteredLicense.Run();
21+
2122
QuickStart.HelloWorld.Run();
2223
#endregion // Quick Start
2324

2425
#region Basic Usage
2526

2627
#region Common
27-
2828
GetSupportedFileFormats.Run();
29-
3029
#endregion
3130

3231
#region Document Preview
33-
32+
3433
GetDocumentInfo.Run();
3534
GeneratePreview.Run();
3635
GetDocumentProcessHistory.Run();
@@ -87,7 +86,7 @@ static void Main(string[] args)
8786

8887
//Search document for Text signature
8988
SearchForText.Run();
90-
89+
9190
//Search document for Image signature
9291
SearchForImage.Run();
9392

@@ -155,6 +154,7 @@ static void Main(string[] args)
155154

156155
//Update QR-code signature in the document after Search method
157156
UpdateQRCode.Run();
157+
158158
#endregion
159159

160160
#region Delete signatures from document
@@ -173,19 +173,24 @@ static void Main(string[] args)
173173

174174
//Delete Digital signature from the document after Search method
175175
DeleteDigital.Run();
176-
176+
177177
//Delete few found multiple signatures in the document after Search method
178178
DeleteMultiple.Run();
179179

180180
//Delete signature from the document by certain type
181181
DeleteBySignatureType.Run();
182+
183+
//Delete signature from the document by known signature id
184+
DeleteById.Run();
185+
182186
#endregion
183187

184188
#endregion // Basic Usage
185189

186190
#region Advanced Usage
187191

188192
#region Loading
193+
189194
LoadDocumentFromLocalDisk.Run();
190195
LoadDocumentFromStream.Run();
191196
LoadDocumentFromUrl.Run();
@@ -207,6 +212,7 @@ static void Main(string[] args)
207212

208213
SaveDocumentWithPassword.Run();
209214
SaveSignedDocumentsAsImages.Run();
215+
210216
#endregion
211217

212218
#region Document Preview with hiding signatures
@@ -225,7 +231,6 @@ static void Main(string[] args)
225231
#endregion
226232

227233
#region Sign document with different signature types with additional options
228-
229234
//Sign document with text signature applying specific options
230235
SignWithTextAdvanced.Run();
231236

@@ -250,7 +255,6 @@ static void Main(string[] args)
250255
//Sign document with image from the base64 string created in SignImageOptions
251256
SignWithBase64ImageAdvanced.Run();
252257

253-
254258
//Sign document with Barcode signature applying specific options
255259
SignWithBarcodeAdvanced.Run();
256260

@@ -267,7 +271,6 @@ static void Main(string[] args)
267271

268272
// Sign Spreadsheet document with XAdes signature
269273
SignWithXAdESTypes.Run();
270-
271274
#endregion
272275

273276
#region Sign with further result analysis
@@ -305,7 +308,6 @@ static void Main(string[] args)
305308
SignPdfWithStandardMetadata.Run();
306309
SignPdfWithCustomMetadata.Run();
307310
SignImageWithCustomMetadata.Run();
308-
309311
SignWithMetadataEncryptedText.Run();
310312
SignWithMetadataEncryptedObject.Run();
311313
SignWithMetadataCustomEncryptionObject.Run();
@@ -317,13 +319,14 @@ static void Main(string[] args)
317319
SignWithPdfTextSticker.Run();
318320
SignWithImageAppearance.Run();
319321
SignWithDigitalAppearance.Run();
320-
321322
#endregion
322323

323324
#region Sign with different measure type
325+
324326
SignWithMillimeters.Run();
325327
SignWithPercents.Run();
326328
SignWithAlignments.Run();
329+
327330
#endregion
328331

329332
SignWithStretchMode.Run();
@@ -424,12 +427,14 @@ static void Main(string[] args)
424427

425428
#region Cancellation of signing, verification, searching process
426429
CancellationSignProcess.Run();
430+
427431
CancellationVerifyProcess.Run();
428432
CancellationSearchProcess.Run();
429433
#endregion
430434

431435
VerifyWithExceptionHandling.Run();
432436

437+
433438
#region Updating document signatures
434439
UpdateTextAfterSearch.Run();
435440
UpdateTextById.Run();
@@ -439,6 +444,7 @@ static void Main(string[] args)
439444
UpdateBarcodeById.Run();
440445
UpdateQRCodeAfterSearch.Run();
441446
UpdateQRCodeById.Run();
447+
442448
UpdateMultipleAdvanced.Run();
443449
#endregion
444450

@@ -455,6 +461,7 @@ static void Main(string[] args)
455461
DeleteDigitalById.Run();
456462
DeleteMultipleAdvanced.Run();
457463
DeleteBySignatureTypes.Run();
464+
DeleteByListIds.Run();
458465
#endregion
459466

460467
#region Processing signatures over all CRUD operation to show full signature process life-cycle
@@ -465,6 +472,7 @@ static void Main(string[] args)
465472
#endregion
466473

467474
OptionsSerialization.Run();
475+
468476
SignWithOrdering.Run();
469477
#endregion // Advanced Usage
470478

@@ -473,4 +481,4 @@ static void Main(string[] args)
473481
Console.ReadKey();
474482
}
475483
}
476-
}
484+
}

Examples/GroupDocs.Signature.Examples.CSharp.Framework/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<packages>
33
<package id="AWSSDK.Core" version="3.3.104.14" targetFramework="net461" />
44
<package id="AWSSDK.S3" version="3.3.110.10" targetFramework="net461" />
5-
<package id="GroupDocs.Signature" version="22.4.0" targetFramework="net461" />
5+
<package id="GroupDocs.Signature" version="22.6.0" targetFramework="net461" />
66
<package id="Microsoft.Azure.KeyVault.Core" version="3.0.4" targetFramework="net461" />
77
<package id="Microsoft.Rest.ClientRuntime" version="2.3.21" targetFramework="net461" />
88
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.19" targetFramework="net461" />

Examples/GroupDocs.Signature.Examples.CSharp/AdvancedUsage/Common/CancellationVerifyProcess.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class CancellationVerifyProcess
1717
private static void OnVerifyProgress(Signature sender, ProcessProgressEventArgs args)
1818
{
1919
// check if process takes more than 0.1 second (100 milliseconds) processing cancellation
20-
if (args.Ticks > 100)
20+
if (args.Ticks > 700)
2121
{
2222
args.Cancel = true;
2323
Console.WriteLine("Sign progress was cancelled. Time spent {0} mlsec", args.Ticks);

Examples/GroupDocs.Signature.Examples.CSharp/AdvancedUsage/Delete/DeleteBySignatureTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void Run()
2121
string filePath = Constants.SAMPLE_SIGNED_MULTI;
2222
string fileName = Path.GetFileName(filePath);
2323
// copy source file since Delete method works with same Document
24-
string outputFilePath = Path.Combine(Constants.OutputPath, "DeleteByType", fileName);
24+
string outputFilePath = Path.Combine(Constants.OutputPath, "DeleteBySignatureTypes", fileName);
2525
Constants.CheckDir(outputFilePath);
2626
File.Copy(filePath, outputFilePath, true);
2727
// processing QR-Code signatures

Examples/GroupDocs.Signature.Examples.CSharp/BasicUsage/Delete/DeleteByType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void Run()
2020
string filePath = Constants.SAMPLE_SIGNED_MULTI;
2121
string fileName = Path.GetFileName(filePath);
2222
// copy source file since Delete method works with same Document
23-
string outputFilePath = Path.Combine(Constants.OutputPath, "DeleteByType", fileName);
23+
string outputFilePath = Path.Combine(Constants.OutputPath, "DeleteBySignatureType", fileName);
2424
Constants.CheckDir(outputFilePath);
2525
File.Copy(filePath, outputFilePath, true);
2626
// processing QR-Code signatures

0 commit comments

Comments
 (0)