public void TestAuthor() { var post = new BlogDB.Core.Post("", new Author("author", 0), ""); Assert.Equal("author", post.Author.Name); Assert.Equal(0, post.Author.ID); }
public void TestPostID() { var guid = Guid.NewGuid(); var post = new BlogDB.Core.Post("", new Author("", 0), "", DateTime.UtcNow, guid); Assert.Equal(guid, post.PostID); }
public void TestDateTime() { var date = DateTime.UtcNow; var post = new BlogDB.Core.Post("", new Author("", 0), "", date, Guid.NewGuid()); Assert.Equal(date, post.Timestamp); }
public void TestBody() { var post = new BlogDB.Core.Post("", new Author("", 0), "body"); Assert.Equal("body", post.Body); }
public void TestTitle() { var post = new BlogDB.Core.Post("title", new Author("", 0), ""); Assert.Equal("title", post.Title); }