Пример #1
0
        public void Shows_IndexDataTable()
        {
            // Arrange
            Source source = GetTestSource();
            var    shows  = GetTestShowSet(source);
            var    db     = new Mock <IPersonalInformationManagerContext>();

            db.Setup(e => e.Shows).Returns(shows);

            ShowsController controller = new ShowsController(db.Object);

            // Act
            ViewResult result = controller.IndexDataTable() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }