Ejemplo n.º 1
0
        public async Task Fetch20Stories()
        {
            var result = await _storiesController.Best20(CancellationToken.None);

            Assert.IsTrue(result.Result is OkObjectResult);

            var okResult = result.Result as OkObjectResult;
            var stories  = (IEnumerable <StoryModel>)okResult.Value;

            Assert.IsTrue(stories.Count() == ResultCount);
        }