Esempio n. 1
0
        public void TestDelete()
        {
            ICommentsDAL commentsDAL = new CommentsDALImplementacion();



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


            Comment comment = commentsDAL.Get(1);

            comment.Content = "Comment MOdificada";

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

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

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