public void SearchBarcodePresentation() { // Set request var testFile = TestFiles.PresentationStorageSigned.FirstOrDefault(); var fileInfo = testFile.GetFileInfo(); var options = new SearchBarcodeOptions(); 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 <SearchBarcodeOptions>() { options }, response, testFile); }
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); }
public static void PopulateOptions(SearchBarcodeOptions options) { options.Page = 1; options.AllPages = true; options.PagesSetup = new PagesSetup() { EvenPages = false, FirstPage = true, LastPage = false, OddPages = false, PageNumbers = new List <int?>() { 1 } }; options.SignatureType = SignatureTypeEnum.Barcode; options.BarcodeType = "Code39Standard"; options.Text = "123456789012"; options.MatchType = SearchBarcodeOptions.MatchTypeEnum.Contains; }