コード例 #1
0
 public static BlogPost CreateBlogPost()
 {
     var authorUserId = 1;
     var title = "This is a new Article Title";
     var content = "This is the new Article Content";
     var post = new BlogPost(authorUserId, title);
     post.Content = content;
     return post;
 }
コード例 #2
0
 public void User_can_create_a_blog_post()
 {
     var blogpost = new BlogPost(CurrentUser.Id, "test post");
     blogpost.AuthorUserId.Should().Be(CurrentUser.Id);
 }
コード例 #3
0
 public void It_is_not_null()
 {
     Blogpost = BlogPostTestHelper.CreateBlogPost();
     Blogpost.Should().NotBeNull();
 }