public async Task EnqueueAsync_NullRequest_ThrowsException() { var client = new InMemoryQueueClient(); var processor = BuildQueueProcessor(client); await Assert.ThrowsAsync <InvalidOperationException>( async() => await processor.EnqueueAsync(null)); }
public async Task EnqueueAsync_Request_QueuesRequest() { var client = new InMemoryQueueClient(); var processor = BuildQueueProcessor(client); await processor.EnqueueAsync(new TestRequest()); Assert.Single(client.Queue); }