示例#1
0
        protected IDictionary <string, Control> AddEditors(ComplexContainersItem item)
        {
            Type    itemType                    = item.GetContentType();
            Control editorContainer             = new Control();
            IDictionary <string, Control> added = editManager.AddEditors(definitions.GetDefinition(itemType), item, editorContainer, CreatePrincipal("someone"));

            return(added);
        }
示例#2
0
        public void TextPage_HasRightZone()
        {
            ItemDefinition definition = definitions.GetDefinition(typeof(DefinitionTextPage));
            IList <AvailableZoneAttribute> availableZones = definition.AvailableZones;

            EnumerableAssert.Contains(availableZones, new AvailableZoneAttribute("Right", "Right"));
        }