public void Twitter_not_shown_in_Plain_view()
        {
            var model = new SocialMediaSettings();

            var feature = new FacebookLikeBox()
            {
                SocialMedia = model, EsccWebsiteView = EsccWebsiteView.Plain
            };

            Assert.False(feature.IsRequired());
        }
Example #2
0
        public void NotShownInPlainView()
        {
            var model = new SocialMediaSettings()
            {
                TwitterWidgetScript = new HtmlString("script code here")
            };

            var feature = new FacebookLikeBox()
            {
                SocialMedia = model, EsccWebsiteView = EsccWebsiteView.Plain
            };

            Assert.IsFalse(feature.IsRequired());
        }
Example #3
0
        public void NotShownInPlainView()
        {
            var model = new SocialMediaSettings()
            {
                FacebookPageUrl = new Uri("https://www.facebook.com/somepage")
            };

            var feature = new FacebookLikeBox()
            {
                SocialMedia = model, EsccWebsiteView = EsccWebsiteView.Plain
            };

            Assert.IsFalse(feature.IsRequired());
        }
        public void Facebook_Page_Plugin_not_showin_in_Plain_view()
        {
            var model = new SocialMediaSettings()
            {
                FacebookPageUrl = new Uri("https://www.facebook.com/somepage")
            };

            var feature = new FacebookLikeBox()
            {
                SocialMedia = model, EsccWebsiteView = EsccWebsiteView.Plain
            };

            Assert.False(feature.IsRequired());
        }