Пример #1
0
        public void Get5Test()
        {
            // Arrange
            var mock = new Mock <Logger.Abstract.IRepository>();

            mock.Setup(x => x.Get5(5)).Returns(new List <Record>
            {
                new Record(),
                new Record(),
                new Record(),
                new Record(),
                new Record(),
            });


            HistoryController controller = new HistoryController(mock.Object);

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

            // Assert
            Assert.AreEqual(false, result.Model);
        }