public void ViewAll_Test() { //Arrangement repoMock.Setup(repo => repo.Alert.FindAll()).Returns(GetAlerts()); //Action var controllerActionResult = alertController.ViewAll(); //Assert Assert.NotNull(controllerActionResult); }