Example #1
0
        public async Task DeleteAssetByName_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;

            await AttachmentClient.DeleteAssetByName("aut", attachmentName);

            // todo : assert the putresponse matches

            await AttachmentClient.AssertNoAttachmentsExist("aut", delay : TimeSpan.FromSeconds(2));
        }