Пример #1
0
 public void Support_Invite_View_Returns_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);
     PartialViewResult result = controller.SupportInvitation(1) as PartialViewResult;
     Assert.IsNotNull(result);
     Assert.IsInstanceOf(typeof(Goal),
        result.ViewData.Model, "Wrong View Model");
 }