Example #1
0
        public void ViewAlert_Test()
        {
            //Arrangement
            repoMock.Setup(repo => repo.Alert.FindByCondition(c => c.ID == It.IsAny <int>())).Returns(GetAlerts());
            //Action
            var controllerActionResult = alertController.ViewAlert(It.IsAny <int>());

            //Assert
            Assert.NotNull(controllerActionResult);
        }