public void GetTagById_ReturnsMatchingTag() { var tag = auth.GetTagById(ValidTag1Id); Assert.AreEqual(ValidTag1Id, tag.Id); Assert.AreEqual(ValidTag1Slug, tag.Slug); Assert.AreEqual(ValidTag1Name, tag.Name); Assert.AreEqual(ValidTag1Description, tag.Description); Assert.AreEqual(ValidTag1FeatureImage, tag.FeatureImage); Assert.AreEqual(ValidTag1Visibility, tag.Visibility); Assert.AreEqual(ValidTag1MetaTitle, tag.MetaTitle); Assert.AreEqual(ValidTag1MetaDescription, tag.MetaDescription); Assert.AreEqual(ValidTag1Url, tag.Url); Assert.IsNull(tag.Count); Assert.IsNull(tag.CodeInjectionHead); Assert.IsNull(tag.CodeInjectionFoot); Assert.IsNull(tag.OgImage); Assert.IsNull(tag.OgTitle); Assert.IsNull(tag.OgDescription); Assert.IsNull(tag.TwitterImage); Assert.IsNull(tag.TwitterTitle); Assert.IsNull(tag.TwitterDescription); Assert.IsNull(tag.CanonicalUrl); Assert.IsNull(tag.AccentColor); }
public void GetTagById_ReturnsMatchingTag() { var tag = auth.GetTagById(ValidTag1Id); Assert.AreEqual(ValidTag1Id, tag.Id); Assert.AreEqual(ValidTag1Slug, tag.Slug); Assert.AreEqual(ValidTag1Name, tag.Name); Assert.AreEqual(ValidTag1Description, tag.Description); Assert.AreEqual(ValidTag1FeatureImage, tag.FeatureImage); Assert.AreEqual(ValidTag1Visibility, tag.Visibility); Assert.AreEqual(ValidTag1MetaTitle, tag.MetaTitle); Assert.AreEqual(ValidTag1MetaDescription, tag.MetaDescription); Assert.AreEqual(null, tag.Count); Assert.AreEqual(ValidTag1Url, tag.Url); }
public void GetTagById_ReturnsMatchingPost_WhenIdIsValid() { SetupMockTag(); var response = auth.GetTagById(id); Assert.AreEqual(id, response.Id); Assert.AreEqual(name, response.Name); Assert.AreEqual(slug, response.Slug); }