public void Modify(Post update) { this.body = update.body; this.title = update.title; this.timeModified = DateTime.Now; }
public void TestingBlog() { Post post = new Post() { body = "Testing Body", title = "test post" }; Assert.Equal("test-post", post.urlSlug); }