public void TestBlobStoreWriterForBody() { var attachmentStream = GetAsset("attachment.png"); var blobStoreWriter = Attachment.BlobStoreWriterForBody(attachmentStream, database); var sha1DigestKey = blobStoreWriter.SHA1DigestString(); Assert.IsTrue(sha1DigestKey.Contains("LmsoqJJ6LOn4YS60pYnvrKbBd64=")); }
/// <exception cref="System.Exception"></exception> public virtual void TestBlobStoreWriterForBody() { BlobStore attachments = database.GetAttachments(); InputStream attachmentStream = GetAsset("attachment.png"); BlobStoreWriter blobStoreWriter = Attachment.BlobStoreWriterForBody(attachmentStream , database); string sha1DigestKey = blobStoreWriter.SHA1DigestString(); NUnit.Framework.Assert.IsTrue(sha1DigestKey.Contains("LmsoqJJ6LOn4YS60pYnvrKbBd64=" )); }