Exemplo n.º 1
0
        public async Task EnqueueAsync_NullRequest_ThrowsException()
        {
            var client    = new InMemoryQueueClient();
            var processor = BuildQueueProcessor(client);

            await Assert.ThrowsAsync <InvalidOperationException>(
                async() => await processor.EnqueueAsync(null));
        }
Exemplo n.º 2
0
        public async Task EnqueueAsync_Request_QueuesRequest()
        {
            var client    = new InMemoryQueueClient();
            var processor = BuildQueueProcessor(client);

            await processor.EnqueueAsync(new TestRequest());

            Assert.Single(client.Queue);
        }