Example #1
0
        public void TestGetList_ReturnList()
        {
            //Arrange
            _mock.Setup(repo => repo.GetAll()).Returns(new List <AgentInfo>());

            //Act
            var result = _controller.GetList();

            // Assert
            var okResult = result as ObjectResult;

            Assert.NotNull(okResult);
            Assert.IsType <ListAgentInfoResponse>(okResult.Value);
        }