Ejemplo n.º 1
0
        public void GetListMessages()
        {
            // Arrange

            // Act
            var result = messagesController.GetList(1).Result;

            // Assert
            Assert.IsType <OkObjectResult>(result);
            var okResult = result as OkObjectResult;

            Assert.IsType <List <MessageView> >(okResult.Value);
            Assert.Empty((okResult.Value as List <MessageView>));
        }