ProcedureParams initialization/constructors modified. ProcedureParamsBase modified.

This commit is contained in:
Milan Hanajik
2017-05-01 16:03:45 +02:00
parent 8a9eba9e76
commit fa57c51786
35 changed files with 119 additions and 38 deletions
@@ -102,6 +102,11 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.Compound
{
}
public CombinedTestParams(bool initialize)
{
if (initialize) InitializeAll();
}
public CombinedTestParams(ComponentTest testParamsEntity, string componentName, Test test)
{
this.testParamsEntity = testParamsEntity;
@@ -20,7 +20,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.Compound
public override IParamsProvider GetTestParams() { return TestParams; }
public override IParamsProvider CreateTestParams(Test test)
{
CombinedTestParams testParams = new CombinedTestParams();
CombinedTestParams testParams = new CombinedTestParams(true);
testParams.UpdateTestParams(Name, test);
return testParams;
}
@@ -28,7 +28,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.Compound
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
TestParams = new CombinedTestParams();
TestParams = new CombinedTestParams(true);
}
public TestMethodCfg(string name, IComponentFactory factory)
@@ -20,7 +20,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.HeatMeters
public override IParamsProvider GetTestParams() { return TestParams; }
public override IParamsProvider CreateTestParams(Test test)
{
TestParams testParams = new TestParams();
TestParams testParams = new TestParams(true);
testParams.UpdateTestParams(Name, test);
return testParams;
}
@@ -28,7 +28,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.HeatMeters
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
TestParams = new TestParams();
TestParams = new TestParams(true);
}
public TestMethodCfg(string name, IComponentFactory factory)
@@ -180,6 +180,11 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.HeatMeters
{
}
public TestParams(bool initialize)
{
if (initialize) InitializeAll();
}
public TestParams(ComponentTest testParamsEntity, string componentName, Test test)
{
this.testParamsEntity = testParamsEntity;