示例#1
0
        public static async Task AssertAttachmentMustNotExist(this ISquidexAttachmentClient that, string application, string name, TimeSpan?delay = null)
        {
            // because of eventual consistency
            if (delay.HasValue)
            {
                await Task.Delay(delay.Value);
            }

            var exists = await that.AttachmentExists(application, name);

            exists.Should().BeFalse();
        }