public async Task ClearBlobs_RemovesBlobData() { const string testBlobContainer = "testcontainer"; storageEm.Start(); await TestHelper.AddTestBlobToContainerAsync(testBlobContainer); async Task <bool> BlobContainerContainsTestBlob() => await TestHelper.BlobContainerExistsAndContainsTestBlobAsync(testBlobContainer); Assert.True(await BlobContainerContainsTestBlob()); storageEm.ClearBlobs(); Assert.False(await BlobContainerContainsTestBlob()); }
public void ClearBlobs_RemovesBlobData() { const string TestBlobContainer = "testcontainer"; _sut.Start(); TestHelper.AddTestBlobToContainer(TestBlobContainer); Func <bool> blobContainerContainsTestBlob = () => TestHelper.BlobContainerExistsAndContainsTestBlob(TestBlobContainer); Assert.True(blobContainerContainsTestBlob()); _sut.ClearBlobs(); Assert.False(blobContainerContainsTestBlob()); }