public void GetPostBySlug_ReturnsMatchingPost_WhenSlugIsValid()
        {
            SetupMockTag();

            var response = auth.GetTagBySlug(slug);

            Assert.AreEqual(id, response.Id);
            Assert.AreEqual(name, response.Name);
            Assert.AreEqual(slug, response.Slug);
        }
Example #2
0
        public void GetTagBySlug_ReturnsMatchingTag()
        {
            var tag = auth.GetTagBySlug(ValidTag1Slug);

            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);
        }