public async Task UpdateAsset_EndToEnd() { var attachmentName = $"{base.GetRandomName}.jpg"; await AttachmentClient.AssertNoAttachmentsExist("aut"); var createResponse = await AttachmentClient.CreateAsset("aut", attachmentName, "image/jpeg", AssetLoader.AsStream(AssetLoader.App1Asset2Name)); await AttachmentClient.AssertAttachmentMustExist("aut", attachmentName, delay : TimeSpan.FromSeconds(2)); var id = createResponse.Id; var updateResponse = await AttachmentClient.UpdateAsset("aut", id, new[] { new StreamPart(AssetLoader.AsStream(AssetLoader.App1Asset3Name), attachmentName, "image/jpeg") }); // todo : assert the putresponse matches var deleteResponse = await AttachmentClient.DeleteAsset("aut", id); await AttachmentClient.AssertNoAttachmentsExist("aut", delay : TimeSpan.FromSeconds(2)); }