public void Goal_Status_Post_Test() { GoalStatus status = new GoalStatus() { GoalStatusId = 1, GoalStatusType = "InProgress" }; GroupGoal goal = new GroupGoal() { GroupId = 1, GroupGoalId = 1, GoalStatusId = 1, GoalStatus = status }; 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); string result = controller.GoalStatus(1, 1) as string; Assert.AreEqual("InProgress", result); }