protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler) { var layer2 = architecture.GetOrCreateLayer(LAYER_2_NAME); layer2.GetOrCreateModule(MODULE_2_NAME).CompositeAssembler.NewLayeredPlainComposite().VisibleIn(Visibility.LAYER).OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin)); testPerformerLayer.UseLayers(layer2); }
protected override LayeredApplicationModel CreateModel(LayeredArchitecture architecture) { architecture.Use(new ApplicationWideUses()); LayerArchitecture layer = architecture.GetOrCreateLayer(LAYER_NAME); layer.Use(new LayerWideUses()); ModuleArchitecture module = layer.GetOrCreateModule(MODULE_NAME); module.Use(new ModuleWideUses()); return(base.CreateModel(architecture)); }
internal LayeredApplicationModelImmutable( LayeredArchitecture architecture, Type genericCompositePropertyMixin, Type genericCompositeEventMixin, Type genericFragmentBaseType, DictionaryQuery <CompositeModelType, CompositeModelTypeAssemblyScopeSupport> modelTypeAssemblyScopeSupport, out DictionaryQuery <CompositeModelType, CompositeModelTypeModelScopeSupport> compositeModelTypeSupport, out DictionaryProxy <Int32, CompositeModel> models, out ListProxy <LayerModelMutable> topLevelLayers, out ListProxy <LayerModelMutable> allLayers ) : base(architecture, genericCompositePropertyMixin, genericCompositeEventMixin, genericFragmentBaseType, modelTypeAssemblyScopeSupport, out compositeModelTypeSupport, out models) { this._topLevelLayers = this.CollectionsFactory.NewListProxy <LayerModelMutable>(); this._allLayers = this.CollectionsFactory.NewListProxy <LayerModelMutable>(); topLevelLayers = this._topLevelLayers; allLayers = this._allLayers; }
internal LayerArchitectureImpl( LayeredArchitecture application, UsesContainerQuery parentContainer, Func <Int32> compositeIDGenerator, DictionaryQuery <CompositeModelType, CompositeModelTypeAssemblyScopeSupport> modelTypeSupport, String name, Action <LayerArchitecture[]> usageAction ) { ArgumentValidator.ValidateNotNull("Application", application); ArgumentValidator.ValidateNotNull("Model type support", modelTypeSupport); ArgumentValidator.ValidateNotNull("Composite ID Generator", compositeIDGenerator); ArgumentValidator.ValidateNotNull("Action to tell usage", usageAction); ArgumentValidator.ValidateNotNull("Parent meta-info container", parentContainer); this._application = application; this._compositeIDGenerator = compositeIDGenerator; this._usageAction = usageAction; this._layerName = name; this._modelTypeSupport = modelTypeSupport; this._metaInfo = UsesContainerMutableImpl.CreateWithParent(parentContainer); this._modules = application.CollectionsFactory.NewDictionaryProxy <String, ModuleArchitectureImpl>(); this._domainSpecificAssemblers = new DomainSpecificAssemblerAggregatorImpl <LayerArchitecture>(application.CollectionsFactory); }
protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin)); }
protected abstract void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler);
protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler) { testPerformerLayer.GetOrCreateModule(MODULE_2_NAME).CompositeAssembler.NewPlainComposite().OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin)); }