public NodeFactoryValidationDecorator(
     IDocumentNodeFactory decoratedFactory,
     IValidationService service)
 {
     _decoratedFactory = decoratedFactory;
     _service          = service;
 }
コード例 #2
0
 public HierarchyValidationExample(IocFixture fixture)
 {
     _container         = fixture.Container;
     _nodeFactory       = _container.Resolve <IDocumentNodeFactory>();
     _validationService = _container.Resolve <IValidationService>();
     InitializeTestNodeStructure();
 }
コード例 #3
0
 public DocumentFactory(
     IDocumentNodeFactory nodeFactory,
     IDocumentHeaderFactory headerFactory,
     IDocumentBodyFactory bodyFactory)
 {
     NodeFactory   = nodeFactory;
     HeaderFactory = headerFactory;
     BodyFactory   = bodyFactory;
 }
コード例 #4
0
 public KtcDocumentBodyFactory(
     IDocumentNodeFactory nodeFactory,
     IAssemblyDrawingFactory assemblyDrawingFactory,
     IDocumentRowFactory rowFactory,
     ISectionFactory sectionFactory)
 {
     _nodeFactory            = nodeFactory;
     _assemblyDrawingFactory = assemblyDrawingFactory;
     _rowFactory             = rowFactory;
     _sectionFactory         = sectionFactory;
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 public KtcDocumentFactory(
     IDocumentNodeFactory nodeFactory,
     IDocumentHeaderFactory headerFactory,
     IDocumentBodyFactory bodyFactory) : base(nodeFactory, headerFactory, bodyFactory)
 {
 }
 public KtcDocumentHeaderFactory(IDocumentNodeFactory nodeFactory)
 {
     _nodeFactory = nodeFactory;
 }
コード例 #8
0
 public NodeFactoryIntDecorator(
     IDocumentNodeFactory decoratedFactory)
 {
     _decoratedFactory = decoratedFactory;
 }
コード例 #9
0
 public KtcDocumentRowFactory(IDocumentNodeFactory nodeFactory)
 {
     _nodeFactory = nodeFactory;
 }