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



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


            Comment comment = commentsDAL.Get(1);

            comment.Content = "Comment MOdificada";

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

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

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