예제 #1
0
        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");
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void EndCommentaryGetResolutionUserTest()
        {
            EndCommentary commentary = new EndCommentary(creationDateTime, resolutionDateTime, creatorUser, resolutionUser, "Comentario");

            Assert.AreEqual(commentary.getResolutionUser().getName(), "NombreResolutor");
        }