Example #1
0
        public void CanDeleteBlogPost()
        {
            // Arrange.
            BlogPost post = CreateBlogPost();

            post.Save();

            // Act.
            BlogPost.Delete(post.ID);

            // Assert.
            Assert.That(BlogPost.All().Count(), Is.EqualTo(0));
        }