public MetamodelManager(SpecFactory specFactory, IMetamodel metamodel) {
            Assert.AssertNotNull(specFactory);
            Assert.AssertNotNull(metamodel);

            this.specFactory = specFactory;
            this.metamodel = metamodel;
        }
示例#2
0
        public ActionSpec(SpecFactory memberFactory,
                          IMetamodelManager metamodel,
                          ILifecycleManager lifecycleManager,
                          ISession session,
                          IServicesManager servicesManager,
                          INakedObjectManager nakedObjectManager,
                          IActionSpecImmutable actionSpecImmutable,
                          IMessageBroker messageBroker,
                          ITransactionManager transactionManager,
                          IObjectPersistor persistor,
                          ILoggerFactory loggerFactory,
                          ILogger <ActionSpec> logger)
            : base(actionSpecImmutable?.Identifier?.MemberName, actionSpecImmutable, session, lifecycleManager, metamodel, persistor)
        {
            this.servicesManager     = servicesManager ?? throw new InitialisationException($"{nameof(servicesManager)} is null");
            this.nakedObjectManager  = nakedObjectManager ?? throw new InitialisationException($"{nameof(nakedObjectManager)} is null");
            this.actionSpecImmutable = actionSpecImmutable ?? throw new InitialisationException($"{nameof(actionSpecImmutable)} is null");
            this.messageBroker       = messageBroker ?? throw new InitialisationException($"{nameof(messageBroker)} is null");
            this.transactionManager  = transactionManager ?? throw new InitialisationException($"{nameof(transactionManager)} is null");
            this.loggerFactory       = loggerFactory ?? throw new InitialisationException($"{nameof(loggerFactory)} is null");
            this.logger = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
            var index = 0;

            Parameters = this.actionSpecImmutable.Parameters.Select(pp => memberFactory.CreateParameter(pp, this, index++)).ToArray();
        }
 public ObjectSpec(SpecFactory memberFactory,
                   IMetamodelManager metamodelManager,
                   INakedObjectManager nakedObjectManager,
                   IObjectSpecImmutable innerSpec,
                   ISession session,
                   IObjectPersistor persistor,
                   ILogger <ObjectSpec> logger) :
     base(memberFactory, metamodelManager, nakedObjectManager, innerSpec, session, persistor) => this.logger = logger;
示例#4
0
 protected TypeSpec(SpecFactory memberFactory, IMetamodelManager metamodelManager, INakedObjectManager nakedObjectManager, ITypeSpecImmutable innerSpec, ISession session, IObjectPersistor persistor)
 {
     MemberFactory           = memberFactory ?? throw new InitialisationException($"{nameof(memberFactory)} is null");
     this.metamodelManager   = metamodelManager ?? throw new InitialisationException($"{nameof(metamodelManager)} is null");
     this.nakedObjectManager = nakedObjectManager ?? throw new InitialisationException($"{nameof(nakedObjectManager)} is null");
     this.session            = session ?? throw new InitialisationException($"{nameof(session)} is null");
     this.persistor          = persistor ?? throw new InitialisationException($"{nameof(persistor)} is null");
     InnerSpec = innerSpec ?? throw new InitialisationException($"{nameof(innerSpec)} is null");
 }
示例#5
0
        protected TypeSpec(SpecFactory memberFactory, IMetamodelManager metamodelManager, INakedObjectManager nakedObjectManager, IObjectSpecImmutable innerSpec)
        {
            Assert.AssertNotNull(memberFactory);
            Assert.AssertNotNull(metamodelManager);
            Assert.AssertNotNull(nakedObjectManager);
            Assert.AssertNotNull(innerSpec);

            this.memberFactory      = memberFactory;
            this.metamodelManager   = metamodelManager;
            this.nakedObjectManager = nakedObjectManager;
            this.innerSpec          = innerSpec;
        }
示例#6
0
        public ActionSpec(SpecFactory memberFactory, IMetamodelManager metamodel, ILifecycleManager lifecycleManager, ISession session, IServicesManager servicesManager, INakedObjectManager nakedObjectManager, IActionSpecImmutable actionSpecImmutable)
            : base(actionSpecImmutable.Identifier.MemberName, actionSpecImmutable, session, lifecycleManager, metamodel)
        {
            Assert.AssertNotNull(memberFactory);
            Assert.AssertNotNull(servicesManager);
            Assert.AssertNotNull(nakedObjectManager);
            Assert.AssertNotNull(actionSpecImmutable);

            this.memberFactory       = memberFactory;
            this.servicesManager     = servicesManager;
            this.nakedObjectManager  = nakedObjectManager;
            this.actionSpecImmutable = actionSpecImmutable;
            int index = 0;

            parametersSpec = this.actionSpecImmutable.Parameters.Select(pp => this.memberFactory.CreateParameter(pp, this, index++)).ToArray();
        }
示例#7
0
        public ActionSpec(SpecFactory memberFactory, IMetamodelManager metamodel, ILifecycleManager lifecycleManager, ISession session, IServicesManager servicesManager, INakedObjectManager nakedObjectManager, IActionSpecImmutable actionSpecImmutable, IMessageBroker messageBroker, ITransactionManager transactionManager)
            : base(actionSpecImmutable.Identifier.MemberName, actionSpecImmutable, session, lifecycleManager, metamodel) {
            Assert.AssertNotNull(memberFactory);
            Assert.AssertNotNull(servicesManager);
            Assert.AssertNotNull(nakedObjectManager);
            Assert.AssertNotNull(actionSpecImmutable);

            this.memberFactory = memberFactory;
            this.servicesManager = servicesManager;
            this.nakedObjectManager = nakedObjectManager;
            this.actionSpecImmutable = actionSpecImmutable;
            this.messageBroker = messageBroker;
            this.transactionManager = transactionManager;
            int index = 0;
            parametersSpec = this.actionSpecImmutable.Parameters.Select(pp => this.memberFactory.CreateParameter(pp, this, index++)).ToArray();
        }
        public ActionSpec(INakedObjectsFramework framework,
                          SpecFactory memberFactory,

                          IActionSpecImmutable actionSpecImmutable,

                          ILoggerFactory loggerFactory,
                          ILogger <ActionSpec> logger)
            : base(actionSpecImmutable?.Identifier?.MemberName, actionSpecImmutable, framework)
        {
            this.framework           = framework ?? throw new InitialisationException($"{nameof(framework)} is null");
            this.actionSpecImmutable = actionSpecImmutable ?? throw new InitialisationException($"{nameof(actionSpecImmutable)} is null");
            this.loggerFactory       = loggerFactory ?? throw new InitialisationException($"{nameof(loggerFactory)} is null");
            this.logger = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
            var index = 0;

            Parameters = this.actionSpecImmutable.Parameters.Select(pp => memberFactory.CreateParameter(pp, this, index++)).ToArray();
        }
示例#9
0
 public ObjectSpec(SpecFactory memberFactory, IMetamodelManager metamodelManager, INakedObjectManager nakedObjectManager, IObjectSpecImmutable innerSpec) :
     base(memberFactory, metamodelManager, nakedObjectManager, innerSpec)
 {
 }
示例#10
0
 public ObjectSpec(SpecFactory memberFactory, IMetamodelManager metamodelManager, INakedObjectManager nakedObjectManager, IObjectSpecImmutable innerSpec) :
     base(memberFactory, metamodelManager, nakedObjectManager, innerSpec) {}
示例#11
0
 public ServiceSpec(SpecFactory memberFactory, IMetamodelManager metamodelManager, INakedObjectManager nakedObjectManager, IServiceSpecImmutable innerSpec, ISession session, IObjectPersistor persistor) :
     base(memberFactory, metamodelManager, nakedObjectManager, innerSpec, session, persistor)
 {
 }