Esempio n. 1
0
        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));
        }