Beispiel #1
0
        public void Initialize()
        {
            DataCreatorFactory = new DataCreatorFactory();
            var factory         = new PossumLabs.DSL.Core.Variables.ObjectFactory();
            var interperter     = new PossumLabs.DSL.Core.Variables.Interpeter(factory);
            var templateManager = new PossumLabs.DSL.Core.Variables.TemplateManager();

            templateManager.Initialize(Assembly.GetExecutingAssembly());

            Setup = new Setup(DataCreatorFactory, factory, templateManager, interperter);
        }
Beispiel #2
0
        public void Initialize()
        {
            DataCreatorFactory = new DataCreatorFactory();
            var factory         = new PossumLabs.DSL.Core.Variables.ObjectFactory();
            var interpeter      = new PossumLabs.DSL.Core.Variables.Interpeter(factory);
            var templateManager = new PossumLabs.DSL.Core.Variables.TemplateManager();

            templateManager.Initialize(Assembly.GetExecutingAssembly());
            Setup = new Setup(DataCreatorFactory, factory, templateManager, interpeter);
            var myEntityRepository = new RepositoryBase <MyEntity>(interpeter, factory);

            interpeter.Register(myEntityRepository);
            var myValueRepository = new RepositoryBase <MyValueObject>(interpeter, factory);

            interpeter.Register(myValueRepository);
            new PossumLabs.DSL.Core.Variables.ExistingDataManager(interpeter, templateManager).Initialize(Assembly.GetExecutingAssembly());
        }