public async Task Should_ReturnAll() { var words = new[] { new LearningItem("salut", new [] { "hello, goodbye" }), new LearningItem("maison", "house") }; var mockHandler = new MockQueryHandler <FindItemsQuery, LearningItem[]>().ReturnsForAll(words).Handler; var controller = new WordsController(null, mockHandler); var result = await controller.Words(); result.ShouldBeEquivalentTo(words); }