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; }
public void User_can_create_a_blog_post() { var blogpost = new BlogPost(CurrentUser.Id, "test post"); blogpost.AuthorUserId.Should().Be(CurrentUser.Id); }
public void It_is_not_null() { Blogpost = BlogPostTestHelper.CreateBlogPost(); Blogpost.Should().NotBeNull(); }