public void EndCommentarySetResolutionUserTest() { EndCommentary commentary = new EndCommentary(creationDateTime, resolutionDateTime, creatorUser, resolutionUser, "Comentario"); User resolutionUserNew = new User("NombreResolutorNew", "ApellidoNew", "EmailNew", birthDate, "PasswordNew", teamsUser); commentary.setResolutionUser(resolutionUserNew); Assert.AreEqual(commentary.getResolutionUser().getName(), "NombreResolutorNew"); }
public void EndCommentarySetResolutionDateTest() { EndCommentary commentary = new EndCommentary(creationDateTime, resolutionDateTime, creatorUser, resolutionUser, "Comentario"); DateTime resolutionDateTimeNew = new DateTime(); DateTime.TryParse("2/2/2000", out resolutionDateTimeNew); commentary.setResolutionDate(resolutionDateTimeNew); Assert.AreEqual(commentary.getResolutionDate(), resolutionDateTimeNew); }
public void EndCommentaryGetResolutionUserTest() { EndCommentary commentary = new EndCommentary(creationDateTime, resolutionDateTime, creatorUser, resolutionUser, "Comentario"); Assert.AreEqual(commentary.getResolutionUser().getName(), "NombreResolutor"); }