public async Task ClearQueues_RemovesQueueData() { const string testQueueName = "testqueue"; storageEm.Start(); await TestHelper.AddTestQueueItemToAsync(testQueueName); async Task <bool> QueueContainsTestMessage() => await TestHelper.QueueExistsAndContainsTestMessageAsync(testQueueName); Assert.True(await QueueContainsTestMessage()); storageEm.ClearQueues(); Assert.False(await QueueContainsTestMessage()); }
public void ClearQueues_RemovesQueueData() { const string TestQueueName = "testqueue"; _sut.Start(); TestHelper.AddTestQueueItemTo(TestQueueName); Func <bool> queueContainsTestMessage = () => TestHelper.QueueExistsAndContainsTestMessage(TestQueueName); Assert.True(queueContainsTestMessage()); _sut.ClearQueues(); Assert.False(queueContainsTestMessage()); }