public void GetAllVehicles_Test() { //Arrange repoMock.Setup(repo => repo.Vehicle.FindAll()).Returns(GetVehicles()); //Action var controllerActionResult = vehicleController.AllVehicleStatuses(); //Assert Assert.NotNull(controllerActionResult); }