public void Get_GoalReport_Test() { Goal goal = new Goal() { GoalStatusId = 1, GoalId = 1 }; goalRepository.Setup(x => x.GetById(1)).Returns(goal); GoalController controller = new GoalController(goalService, metricService, focusService, supportService, updateService, commentService, userService, securityTokenService, supportInvitationService, goalStatusService, commentUserService, updateSupportService); JsonResult reslt = controller.GetGoalReport(1) as JsonResult; Assert.IsNotNull(reslt); }