public void ReplaceGlobalPlaceholder_WithFormattedNumber()
        {
            UserProfileSection userProfileSection = TestUtilities.GetSection <UserProfileSection>("UserProfileSettings");
            BlogElement        blog = userProfileSection.Blog;

            string expected = "There are total of 12 posts until 2020.";

            Assert.AreEqual(expected, blog.PostsMessage);
        }
        public void ReplaceGlobalPlaceholder_WithMissingAppSettingsProperty()
        {
            UserProfileSection userProfileSection = TestUtilities.GetSection <UserProfileSection>("UserProfileSettings");
            BlogElement        blog = userProfileSection.Blog;

            string expected = "john_doe_profile";

            Assert.AreEqual(expected, blog.Location);
        }
        public void ReplaceGlobalPlaceholder_WithAppSettingsProperty()
        {
            UserProfileSection    userProfileSection = TestUtilities.GetSection <UserProfileSection>("UserProfileSettings");
            SocialMediaCollection socialMedias       = userProfileSection.SocialMedias;

            string[] expected = new string[]
            {
                "https://www.facebook.com/john_doe_profile",
                "https://twitter.com/john_doe_profile"
            };
            Assert.IsTrue(expected.SequenceEqual(socialMedias.Select(socialMedia => socialMedia.Location)));
        }