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); }
public void TextPage_HasRightZone() { ItemDefinition definition = definitions.GetDefinition(typeof(DefinitionTextPage)); IList <AvailableZoneAttribute> availableZones = definition.AvailableZones; EnumerableAssert.Contains(availableZones, new AvailableZoneAttribute("Right", "Right")); }