public void GetPageBySlug_ReturnsMatchingPage() { var page = auth.GetPageBySlug(ValidPage1Slug); 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.IsNotNull(page.Title); 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 GetPageBySlug_ReturnsMatchingPage_WhenSlugIsValid() { SetupMockPage(); var response = auth.GetPageBySlug(slug); Assert.AreEqual(title, response.Title); Assert.AreEqual(slug, response.Slug); Assert.AreEqual(html, response.Html); }