示例#1
0
        public void GetShowsTest()
        {
            var controller = new ShowController(_context);
            var result     = controller.ShowList();

            var objectResult = Assert.IsType <OkObjectResult>(result);
            var model        = Assert.IsAssignableFrom <IEnumerable <ShowDto> >(objectResult.Value);

            Assert.Equal(_showDTOs, model);
        }