Exemplo n.º 1
0
        public async Task Completee_Completes()
        {
            var now     = clock.Object.UtcNow;
            var context = new QueueContext
            {
                MessageData = new QueueMessage
                {
                    Id        = 12345,
                    NotBefore = now,
                },
                SourceQueue = "SourceQueue"
            };
            await reader.Complete(context);

            Assert.IsTrue(ReferenceEquals(context.MessageData, CompletedMessage));
            Assert.AreEqual(now, context.MessageData.Completed);
            Assert.AreEqual(CompletedQueue, "SourceQueue");
        }