public NodeFactoryValidationDecorator( IDocumentNodeFactory decoratedFactory, IValidationService service) { _decoratedFactory = decoratedFactory; _service = service; }
public HierarchyValidationExample(IocFixture fixture) { _container = fixture.Container; _nodeFactory = _container.Resolve <IDocumentNodeFactory>(); _validationService = _container.Resolve <IValidationService>(); InitializeTestNodeStructure(); }
public DocumentFactory( IDocumentNodeFactory nodeFactory, IDocumentHeaderFactory headerFactory, IDocumentBodyFactory bodyFactory) { NodeFactory = nodeFactory; HeaderFactory = headerFactory; BodyFactory = bodyFactory; }
public KtcDocumentBodyFactory( IDocumentNodeFactory nodeFactory, IAssemblyDrawingFactory assemblyDrawingFactory, IDocumentRowFactory rowFactory, ISectionFactory sectionFactory) { _nodeFactory = nodeFactory; _assemblyDrawingFactory = assemblyDrawingFactory; _rowFactory = rowFactory; _sectionFactory = sectionFactory; }
public INodeViewModel Create(INodeViewModel parent, string nodeType) { IDocumentNodeFactory factory = _container.ResolveOptionalKeyed <IDocumentNodeFactory>(nodeType); if (factory == null) { factory = _container.ResolveKeyed <IDocumentNodeFactory>("default_node"); } INodeViewModel node = factory.Create(parent, nodeType); if (parent != null) { parent.Children.Add(node); } return(node); }
public KtcDocumentFactory( IDocumentNodeFactory nodeFactory, IDocumentHeaderFactory headerFactory, IDocumentBodyFactory bodyFactory) : base(nodeFactory, headerFactory, bodyFactory) { }
public KtcDocumentHeaderFactory(IDocumentNodeFactory nodeFactory) { _nodeFactory = nodeFactory; }
public NodeFactoryIntDecorator( IDocumentNodeFactory decoratedFactory) { _decoratedFactory = decoratedFactory; }
public KtcDocumentRowFactory(IDocumentNodeFactory nodeFactory) { _nodeFactory = nodeFactory; }