Beispiel #1
0
        public void TestDelete()
        {
            ICommentsDAL commentsDAL = new CommentsDALImplementacion();



            Assert.AreEqual(true, commentsDAL.Delete(13));
        }
Beispiel #2
0
        public void TestUpdate()
        {
            ICommentsDAL commentsDAL = new CommentsDALImplementacion();


            Comment comment = commentsDAL.Get(1);

            comment.Content = "Comment MOdificada";

            Assert.AreEqual(true, commentsDAL.Update(comment));
        }
Beispiel #3
0
        public void TestAdd()
        {
            ICommentsDAL CommentDAL = new CommentsDALImplementacion();

            Comment comment = new Comment
            {
                Content = "Prueba"
            };

            Assert.AreEqual(true, CommentDAL.Add(comment));
        }