public void Get_GoalReport_Test() { GroupGoal goal = new GroupGoal() { GoalStatusId = 1, GroupGoalId = 1 }; groupGoalRepository.Setup(x => x.GetById(1)).Returns(goal); GroupController controller = new GroupController(groupService, groupUserService, userService, metricService, focusService, groupgoalService, groupInvitationService, securityTokenService, groupUpdateService, groupCommentService, goalStatusService, groupRequestService, followUserService, groupCommentUserService, groupUpdateSupportService, groupUpdateUserService); JsonResult reslt = controller.GetGoalReport(1) as JsonResult; Assert.IsNotNull(reslt); }