Пример #1
0
 public static void AssertFieldSignature(string filePath, FileAuthentication fileAuth, AuthenticationManager authenticationManager,
                                         string expectedFieldName, string expectedSignName, string expectedLocation, string expectedReason, bool expectedLockDocument)
 {
     using (var comparer = new PdfComparer(filePath, fileAuth, authenticationManager))
     {
         string signatureName = comparer.GetSignatureName();
         Assert.AreEqual(expectedFieldName, signatureName);
         comparer.AssertCertificationLevel(expectedLockDocument);
         comparer.AssertSignatureDetails(signatureName, expectedSignName, expectedLocation, expectedReason);
     }
 }
Пример #2
0
 public static void AssertPageSignature(string filePath, FileAuthentication fileAuth, AuthenticationManager authenticationManager,
                                        string expectedSignName, string expectedLocation, string expectedReason, bool expectedLockDocument,
                                        int expectedPage, float expectedLeft, float expectedTop, float expectedWidth, float expectedHeight)
 {
     using (var comparer = new PdfComparer(filePath, fileAuth, authenticationManager))
     {
         string signatureName = comparer.GetSignatureName();
         comparer.AssertCertificationLevel(expectedLockDocument);
         comparer.AssertSignatureDetails(signatureName, expectedSignName, expectedLocation, expectedReason);
         comparer.AssertSignaturePosition(signatureName, expectedPage, expectedLeft, expectedTop, expectedWidth, expectedHeight);
     }
 }