public void GetPageById_ReturnsMatchingPage() { var page = auth.GetPageById(ValidPage1Id); Assert.AreEqual(ValidPage1Id, page.Id); Assert.AreEqual(ValidPage1Slug, page.Slug); Assert.AreEqual(ValidPage1Url, page.Url); Assert.IsNotNull(page.Uuid); Assert.IsNotNull(page.Html); Assert.IsNotNull(page.CommentId); Assert.IsNotNull(page.CreatedAt); Assert.IsNotNull(page.UpdatedAt); Assert.IsNotNull(page.PublishedAt); Assert.IsNotNull(page.Url); Assert.IsNotNull(page.Excerpt); Assert.IsNull(page.MetaTitle); Assert.IsNull(page.CodeInjectionHead); Assert.IsNull(page.CodeInjectionFoot); Assert.IsNull(page.OgImage); Assert.IsNull(page.OgTitle); Assert.IsNull(page.TwitterImage); Assert.IsNull(page.TwitterTitle); Assert.IsNull(page.CustomTemplate); Assert.IsNull(page.PrimaryAuthor); Assert.IsNull(page.PrimaryTag); Assert.IsNull(page.Authors); Assert.IsNull(page.Tags); }
public void GetPageById_ReturnsMatchingPage_WhenIdIsValid() { SetupMockPage(); var response = auth.GetPageById(id); Assert.AreEqual(title, response.Title); Assert.AreEqual(slug, response.Slug); Assert.AreEqual(html, response.Html); }