Exemplo n.º 1
0
 public override void Init(ModelContainer modelContainer)
 {
     ProductType = modelContainer.Get <ProductTypeModel>(_typeId);
     ProductType.ProductSetRefs.Add(this);
     foreach (var member in Members)
     {
         member.Init(modelContainer);
         member.Model.ProductSetRefs.Add(this);
     }
 }
Exemplo n.º 2
0
        public override void Init(ModelContainer modelContainer)
        {
            if (_suiteTypeId.HasValue)
            {
                SuiteType = modelContainer.Get <SuiteTypeModel>(_suiteTypeId.Value);
                SuiteType.SuiteRefs.Add(this);
            }

            Platform = modelContainer.Get <PlatformBase>(_platformId);
            Platform.SuiteRefs.Add(this);
            Product = modelContainer.Get <ProductBaseModel>(_productId);
            Product.SuiteRefs.Add(this);

            var scenarioBaseModels = _statementsIds.Select(modelContainer.Get <ScenarioBaseModel>);

            Statements.AddRange(scenarioBaseModels);
            foreach (var scenario in scenarioBaseModels)
            {
                scenario.SuiteRefs.Add(this);
            }
        }
Exemplo n.º 3
0
 public void Init([NotNull] ModelContainer modelContainer)
 {
     Barrier = modelContainer.Get <BarrierModel>(_barrierId);
 }
 public void Init([NotNull] ModelContainer modelContainer)
 {
     Platform = modelContainer.Get <PlatformBase>(_platformId);
     Product  = modelContainer.Get <ProductBaseModel>(_productId);
 }
Exemplo n.º 5
0
 public void Init([NotNull] ModelContainer modelContainer)
 {
     Deployments = _deploymentIds.Select(x => modelContainer.Get <DeploymentBaseModel>(x)).ToImmutableArray();
 }
Exemplo n.º 6
0
 public override void Init(ModelContainer modelContainer)
 {
     BaseDeployment = modelContainer.Get <CurryingApplicableDeployment>(_baseDeploymentId);
     BaseDeployment.CurryingDeploymentRefs.Add(this);
 }
Exemplo n.º 7
0
 public override void Init(ModelContainer modelContainer)
 {
     Type = modelContainer.Get <ProductTypeModel>(_typeId);
     Type.ProductRefs.Add(this);
 }
Exemplo n.º 8
0
 public void Init([NotNull] ModelContainer modelContainer)
 {
     Model = modelContainer.Get <TRefereedModel>(_modelId);
 }