public void VerifyResult() { DocumentUploadExample example = new DocumentUploadExample(Props.GetInstance()); example.Run(); DocumentPackage documentPackage = example.EslClient.GetPackage(example.PackageId); // Verify if the document was uploaded correctly. Document document = documentPackage.Documents[example.UPLOADED_DOCUMENT_NAME]; byte[] documentBinary = example.EslClient.DownloadDocument(example.PackageId, document.Id); Assert.Greater(documentBinary.Length, 0); }
public void VerifyResult() { DocumentUploadExample example = new DocumentUploadExample(); example.Run(); DocumentPackage documentPackage = example.RetrievedPackage; // Verify if the document was uploaded correctly. Document document = documentPackage.GetDocument(example.UPLOADED_DOCUMENT_NAME); byte[] documentFile = example.EslClient.DownloadDocument(example.PackageId, document.Id); Assert.Greater(documentFile.Length, 0); }
public void VerifyResult() { DocumentUploadExample example = new DocumentUploadExample(); example.Run(); DocumentPackage documentPackage = example.RetrievedPackage; // Verify if the documents was uploaded correctly. Assert.AreEqual(3, documentPackage.Documents.Count); Document document1 = documentPackage.GetDocument(example.DOCUMENT1_NAME); byte[] document1Binary = example.OssClient.DownloadDocument(example.PackageId, document1.Id); Assert.Greater(document1Binary.Length, 32000); Assert.Less(document1Binary.Length, 33000); Document document2 = documentPackage.GetDocument(example.DOCUMENT2_NAME); byte[] documen2Binary = example.OssClient.DownloadDocument(example.PackageId, document2.Id); Assert.Greater(documen2Binary.Length, 51000); Assert.Less(documen2Binary.Length, 52000); }