public IEditorNavigationType CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            var navigationType = new EditorNavigationType(definition, type, baseTypes);

            _navigationTypes.Add(type, navigationType);
            return(navigationType);
        }
        IEditorNavigationType IEditorNavigationTypeRegistryService.CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
        {
            Contract.Requires<ArgumentNullException>(definition != null);
            Contract.Requires<ArgumentNullException>(type != null);
            Contract.Ensures(Contract.Result<IEditorNavigationType>() != null);

            throw new NotImplementedException();
        }
Esempio n. 3
0
        public IEditorNavigationType CreateEditorNavigationType([NotNull] EditorNavigationTypeDefinition definition, [NotNull] string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            Requires.NotNull(definition, nameof(definition));
            Requires.NotNull(type, nameof(type));

            var navigationType = new EditorNavigationType(definition, type, baseTypes);

            _navigationTypes.Add(type, navigationType);
            return(navigationType);
        }
        public EditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
        {
            if (type == null)
                throw new ArgumentNullException();

            baseTypes = baseTypes ?? EmptyNavigationTypes;
            if (baseTypes.Contains(null))
                throw new ArgumentException();
            if (baseTypes.Any(b => b.IsOfType(type)))
                throw new ArgumentException();

            this.Type = type;
            this.BaseTypes = baseTypes.ToArray();
            this.Definition = definition;
        }
Esempio n. 5
0
        public EditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            if (type == null)
            {
                throw new ArgumentNullException();
            }

            baseTypes = baseTypes ?? EmptyNavigationTypes;
            if (baseTypes.Contains(null))
            {
                throw new ArgumentException();
            }
            if (baseTypes.Any(b => b.IsOfType(type)))
            {
                throw new ArgumentException();
            }

            this.Type       = type;
            this.BaseTypes  = baseTypes.ToArray();
            this.Definition = definition;
        }
 public IEditorNavigationType CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
 {
     var navigationType = new EditorNavigationType(definition, type, baseTypes);
     _navigationTypes.Add(type, navigationType);
     return navigationType;
 }
Esempio n. 7
0
        IEditorNavigationType IEditorNavigationTypeRegistryService.CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            Contract.Requires <ArgumentNullException>(definition != null);
            Contract.Requires <ArgumentNullException>(type != null);
            Contract.Ensures(Contract.Result <IEditorNavigationType>() != null);

            throw new NotImplementedException();
        }