public static void SetupTest(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(AnyComposite)); // TODO implementing value composite model type should be done via extension //assembler.NewValue().OfTypes( typeof( AnyValue ) ); assembler.NewPlainComposite().OfTypes(typeof(AnyObject)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestTransient)) .WithMixins(typeof(TestTransientMixin)); assembler .NewPlainComposite().OfTypes(typeof(TestTransientWithPrivateComposite)) .WithMixins(typeof(TestTransientWithPrivateCompositeMixin), typeof(TestPrivateCompositeMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)) .WithMixins(typeof(TestCompositeMixin)).Done() .WithConcerns(typeof(TestGenericConcern1), typeof(TestGenericConcern2)); assembler .NewPlainComposite().OfTypes(typeof(TestComposite2)) .WithMixins(typeof(TestComposite2Mixin)).Done() .WithConcerns(typeof(TestComposite2Concern)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(GenericComposite <>)) .WithMixins(typeof(GenericCompositeMixin <>)).Done() .WithConcerns(typeof(GenericCompositeGenericConcern), typeof(GenericCompositeConcern <>)); assembler .NewPlainComposite().OfTypes(typeof(ComplexGenericComposite <>)) .WithMixins(typeof(GenericCompositeMixin <>), typeof(ComplexGenericCompositeMixin <>)).Done() .WithConcerns(typeof(GenericCompositeGenericConcern), typeof(GenericCompositeConcern <>)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)) .WithMixins(typeof(TestCompositeMixin)); assembler .NewPlainComposite().OfTypes(typeof(TestComposite2)) .WithMixins(typeof(TestCompositeMixinSub)); assembler .NewPlainComposite().OfTypes(typeof(TestComposite3)) .WithMixins(typeof(TestCompositeMixinSubSub)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewService().AsFunctionAggregator <Type, TestFunction>() .WithFunctionType( FunctionAssemblerUtils.TypeBasedFunctionLookUp(0) ) .WithDefaultFunctions( Tuple.Create <Type[], Func <StructureServiceProvider, TestFunction> >(new Type[] { typeof(MyData) }, ssp => ssp.NewPlainCompositeBuilder <MyFunction>().Instantiate()) ).Done() .OfTypes(typeof(TestService)); assembler.NewPlainComposite().OfTypes(typeof(MyData)); assembler.NewPlainComposite().OfTypes(typeof(MyFunction)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)); assembler .NewPlainComposite() .OfTypes(typeof(TestCompositeWithConstraints)) .WithConstraints(typeof(TestConstraintImpl)); assembler .NewPlainComposite() .OfTypes(typeof(TestCompositeWithBooleanProperty)); assembler .NewPlainComposite() .OfTypes(typeof(TestComposite64)); // This composite is only for checking that code generation emits appropriate read methods and check in compostei constructor. }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite3)) .WithMixins(typeof(TestComposite3Mixin)).Done() .WithConstraints(typeof(TestConstraintImpl)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)) .WithMixins(typeof(TestCompositeMixin)).Done() .WithSideEffects(typeof(TestGenericSideEffect1), typeof(TestGenericSideEffect2)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)) .WithMixins(typeof(TestMixin)).Done() .WithConcerns(typeof(TestConcern)).ApplyWith(typeof(TestAppliesToAttribute)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(TestComposite)) .WithMixins(typeof(BaseTypeFirstMixin), typeof(BaseTypeSecondMixin), typeof(CounterImpl)).Done() .WithSideEffects(typeof(CountCallsSideEffect)).ApplyWith(typeof(TestAppliesToAttribute)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite() .OfTypes(typeof(PublicComposite)) .WithMixins(typeof(PublicCompositeMixin), typeof(PrivateCompositeMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { _injectionValidationCalled = false; assembler .NewPlainComposite().OfTypes(typeof(TestComposite <>)) .WithMixins(typeof(TestCompositeMixin <>)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(Test)) .WithMixins(typeof(TestMixin), typeof(TestPrivateMixin)).Done() .WithConcerns(typeof(TestConcern)).Done() .WithSideEffects(typeof(TestSideEffect)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(ServiceComposite)); assembler .NewPlainComposite().OfTypes(typeof(ServiceUser)) .WithMixins(typeof(ServiceUserMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(CollectionWithRoles <,>)) .WithMixins(typeof(CollectionWithRolesMixin <,>), typeof(CollectionMutableQueryMixin <,>), typeof(CollectionImmutableQueryMixin <,>)); assembler .NewPlainComposite().OfTypes(typeof(ListWithRoles <,>)) .WithMixins(typeof(ListWithRolesMixin <,>), typeof(ListMutableQueryMixin <,>), typeof(ListImmutableQueryMixin <,>), typeof(CollectionImmutableQueryMixin <,>), typeof(CollectionMutableQueryMixin <,>), typeof(CollectionWithRolesMixin <,>)); assembler .NewService().OfTypes(typeof(CollectionsFactory)) .WithMixins(typeof(CollectionsFactoryMixin)); assembler .NewPlainComposite().OfTypes(typeof(Int32Object)) .WithMixins(typeof(Int32ObjectMixin), typeof(Int32ObjectIQMixin)); assembler .NewService().OfTypes(typeof(ObjectsFactory)) .WithMixins(typeof(ObjectsFactoryMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes( typeof(Composite1) ).WithMixins( typeof(Composite1Mixin) ); assembler.NewPlainComposite().OfTypes( typeof(Composite2) ).WithMixins( typeof(BaseMixin <String>) ); assembler.NewPlainComposite().OfTypes( typeof(Composite3) ).WithMixins( typeof(Composite3Mixin) ); assembler.NewPlainComposite().OfTypes( typeof(Composite4) ).WithMixins( typeof(BaseMixin <String>), typeof(BaseMixin <Int32>) ); assembler.NewPlainComposite().OfTypes( typeof(Composite5 <>) ).WithMixins( typeof(Composite5Mixin <>) ); assembler.NewPlainComposite().OfTypes( typeof(Composite6 <>) ).WithMixins( typeof(BaseMixin <>) ); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(CompositeType), typeof(RoleType)) .WithMixins(typeof(RoleMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(RealObjectComposite)) .WithMixins(typeof(IFaceImpl), typeof(IFaceImpl2)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(TestComposite1)); assembler.NewPlainComposite().OfTypes(typeof(TestComposite2)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(SpecifiedComposite)) .WithMixins(typeof(BaseGenericCompositeMixin <>)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(TestObject)); assembler.NewPlainComposite().OfTypes(typeof(TestObjectWithConcern)).WithConcerns(typeof(TestObjectConcern)); assembler.NewPlainComposite().OfTypes(typeof(TestObjectWithSideEffect)).WithSideEffects(typeof(TestObjectSideEffect)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(First.TheTestComposite)).WithMixins(typeof(First.TheTestMixin)); assembler.NewPlainComposite().OfTypes(typeof(Second.TheTestComposite)).WithMixins(typeof(Second.TheTestMixin)); }
public static void SetupTest(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewPlainComposite().OfTypes(typeof(TestComposite)); assembler.NewPlainComposite().OfTypes(typeof(TestWithTypedConcernComposite)); assembler.NewPlainComposite().OfTypes(typeof(TestWithGenericConcernComposite)); }