示例#1
0
        public async Task ControllerShouldReturnLatest()
        {
            var result = await _controller.GetLatest();

            var latest = result.Value;

            Assert.NotNull(latest);
            Assert.NotEmpty(latest);
            Assert.IsType <ShowModel>(latest.First());
            foreach (var item in latest)
            {
                Assert.True(item.StartDate >= DateTime.Today);
            }
        }