示例#1
0
 public void Goal_Status_Post_Test()
 {
     GoalStatus status = new GoalStatus()
     {
         GoalStatusId = 1,
         GoalStatusType = "InProgress"
     };
     Goal goal = new Goal()
     {
         GoalId = 1,
         GoalStatus = status,
         GoalStatusId = 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);
     string result = controller.GoalStatus(1, 1) as string;
     Assert.AreEqual("InProgress", result);
 }
示例#2
0
 public void CreateGoalStatus(GoalStatus goalStatus)
 {
     goalStatusRepository.Add(goalStatus);
     SaveGoalStatus();
 }