public void Map_WhenTypeIsContentArea_ShouldSetSearchableToFalse()
        {
            var subject = CreateSubject();
            var pageDefinition = new PageDefinition
            {
                Name = "MyContentArea",
                Searchable = true,
                Type = new PageDefinitionType
                {
                    TypeName = ComposerPropertyTypes.ContentArea,
                    DataType = "String"
                }
            };

            var propertyDefinition = subject.Map(pageDefinition);

            Assert.IsFalse(propertyDefinition.Searchable);
        }
 private bool SupportedPropertiesPredicate(PageDefinition definition)
 {
     return !IgnoredPropertyNames.Contains(definition.Name);
 }
        public void Map_WhenTypeIsContentArea_ShouldSetDisplayEditUIToTrue()
        {
            var subject = CreateSubject();
            var pageDefinition = new PageDefinition
            {
                Name = "MyContentArea",
                DisplayEditUI = false,
                Type = new PageDefinitionType {
                    TypeName = ComposerPropertyTypes.ContentArea,
                    DataType = "String" }
            };

            var propertyDefinition = subject.Map(pageDefinition);

            Assert.IsTrue(propertyDefinition.DisplayEditUI);
        }