Esempio n. 1
0
        public void SearchDigitalSpreadsheet()
        {
            // Set request
            var testFile = TestFiles.SpreadsheetStorageSigned.FirstOrDefault();
            var fileInfo = testFile.GetFileInfo();
            var options  = new SearchDigitalOptions();

            PopulateOptions(options);
            var searchSettings = new SearchSettings();

            searchSettings.FileInfo = fileInfo;
            searchSettings.Options  = new List <SearchOptions>()
            {
                options
            };
            var request = new SearchSignaturesRequest(searchSettings);

            // Get and check result
            var response = SignatureApi.SearchSignatures(request);

            CheckResponse(new List <SearchOptions>()
            {
                options
            }, response, testFile);
        }
Esempio n. 2
0
        public void SearchCollectionPdf()
        {
            // Set request
            var testFile = TestFiles.PdfStorageSigned.FirstOrDefault();
            var fileInfo = testFile.GetFileInfo();

            var optionsBarcode = new SearchBarcodeOptions();

            TestsSearchBarcode.PopulateOptions(optionsBarcode);

            var optionsQrCode = new SearchQRCodeOptions();

            TestsSearchQrCode.PopulateOptions(optionsQrCode);

            var optionsDigital = new SearchDigitalOptions();

            TestsSearchDigital.PopulateOptions(optionsDigital);

            var searchSettings = new SearchSettings();

            searchSettings.FileInfo = fileInfo;
            searchSettings.Options  = new List <SearchOptions>()
            {
                optionsBarcode, optionsQrCode, optionsDigital
            };
            var request = new SearchSignaturesRequest(searchSettings);

            // Get and check result
            var response = SignatureApi.SearchSignatures(request);

            CheckResponse(new List <SearchOptions>()
            {
                optionsBarcode, optionsQrCode, optionsDigital
            }, response, testFile);
        }