From cd8958c3a43dad2de45b722a1b143e9445958954 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 9 May 2020 01:05:04 +0000 Subject: [PATCH] --- Attachments/AttachmentTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Attachments/AttachmentTest.cs b/Attachments/AttachmentTest.cs index a32cded..21a5b1e 100644 --- a/Attachments/AttachmentTest.cs +++ b/Attachments/AttachmentTest.cs @@ -121,6 +121,9 @@ namespace raven_integration formDataContent.Add(new StringContent("2"), name: "AttachToObjectType"); formDataContent.Add(new StringContent("1"), name: "AttachToObjectId"); + formDataContent.Add(new StringContent("Test:AttachmentUploadDownloadDeleteShouldWork"), name: "Notes"); + formDataContent.Add(new StringContent("[{\"name\":\"test.png\",\"lastModified\":1586900220990}]"), name: "FileData"); + StreamContent file1 = new StreamContent(File.OpenRead($"{Util.TEST_DATA_FOLDER}\\test.png")); file1.Headers.ContentType = new MediaTypeHeaderValue("image/png");