Пример #1
0
        public void TestCreateAndListComment()
        {
            ApplicationSeeder.Seed();

            var bo        = new CommentBO();
            var foreignBO = new ClientBO();

            var comment = new Comment("Tou só a testar", foreignBO.ListUndeleted().Result.First().Id);

            var resCreate = bo.Create(comment);
            var resGet    = bo.Read(comment.Id);

            Assert.IsTrue(resCreate.Success && resGet.Success && resGet.Result != null);
        }