Exemplo n.º 1
0
        public void TestDeleteComment()
        {
            ApplicationSeeder.Seed();

            var bo = new CommentBO();

            var resList = bo.List();
            var total   = resList.Result.Count;

            var resDelete = bo.Delete(resList.Result.First().Id);

            var list = bo.ListUndeleted();

            Assert.IsTrue(resDelete.Success && resList.Success && list.Result.Count == (total - 1));
        }