Clone( ) function added to IParamsProvider and all procedure/test parameters classes.
This commit is contained in:
+15
-3
@@ -69,6 +69,19 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
|
||||
return false;
|
||||
}
|
||||
|
||||
void CopyContentTo(TestParams prms)
|
||||
{
|
||||
prms.Evaluate = this.Evaluate;
|
||||
prms.Publish = this.Publish;
|
||||
}
|
||||
|
||||
public IParamsProvider Clone()
|
||||
{
|
||||
TestParams pars = new TestParams();
|
||||
CopyContentTo(pars);
|
||||
return pars;
|
||||
}
|
||||
|
||||
public override void UpdateTestParams(Entities.ComponentTest dbEntity)
|
||||
{
|
||||
if (dbEntity == null) return;
|
||||
@@ -81,9 +94,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
|
||||
componentName = dbEntity.CmpntName;
|
||||
test = dbEntity.Test;
|
||||
|
||||
Evaluate = tmp.Evaluate;
|
||||
Publish = tmp.Publish;
|
||||
}
|
||||
tmp.CopyContentTo(this);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user