コード例 #1
0
        public async Task GetAsync_WithoutParams_ReturnsAllItems()
        {
            var contentResult = await _controller
                                .ExecuteAction(controller => controller.GetAsync());

            contentResult.TryGetContentValue <Item[]>(out var items);

            Assert.That(contentResult.StatusCode, Is.EqualTo(HttpStatusCode.OK));
            Assert.That(items, Is.EqualTo(s_items).UsingItemComparer());
        }