Ejemplo n.º 1
0
        public void CanUpdateMobileSkin()
        {
            var repository = new DatabaseObjectProvider();

            repository.CreateBlog("title", "username", "password", _hostName, string.Empty);
            Blog info = repository.GetBlog(_hostName.ToUpper(CultureInfo.InvariantCulture), string.Empty);

            info.MobileSkin = new SkinConfig {
                TemplateFolder = "Mobile", SkinStyleSheet = "Mobile.css"
            };
            repository.UpdateConfigData(info);
            Blog blog = repository.GetBlogById(info.Id);

            Assert.AreEqual("Mobile", blog.MobileSkin.TemplateFolder);
            Assert.AreEqual("Mobile.css", blog.MobileSkin.SkinStyleSheet);
        }