Ejemplo n.º 1
0
        public async Task TestInitialize()
        {
            _messages = new MessageRepository(ConnectonString);

            // make sure we're starting with empty queues
            foreach (var queueName in QueueNames.Enumerate())
            {
                var removedTimeRanges1 = await _messages.RemoveTimeRangesAsync(queueName, null, null);

                Assert.AreEqual(0, await _messages.GetTimeRangeCountAsync(queueName));
                Assert.AreEqual(0, await _messages.GetPendingMessageCountAsync(queueName));
            }
        }