2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2015-01-02 18:14:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
using Config.Entities;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
|
|
|
|
|
{
|
|
|
|
|
|
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// <summary> Test parameters </summary>
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public CombinedWithDetTestParams TestParams;
|
|
|
|
|
|
public override IParamsProvider GetTestParams() { return TestParams; }
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public override IParamsProvider CreateTestParams(Test test)
|
2014-12-31 12:46:33 +00:00
|
|
|
|
{
|
2017-05-01 13:57:37 +00:00
|
|
|
|
CombinedWithDetTestParams testParams = new CombinedWithDetTestParams(true);
|
2014-12-31 12:46:33 +00:00
|
|
|
|
testParams.UpdateTestParams(Name, test);
|
|
|
|
|
|
return testParams;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
TestMethodCfg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-05-01 13:57:37 +00:00
|
|
|
|
TestParams = new CombinedWithDetTestParams(true);
|
2014-12-29 15:00:27 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2016-09-26 09:08:16 +00:00
|
|
|
|
public TestMethodCfg(string name, IComponentFactory factory)
|
2014-12-29 15:00:27 +00:00
|
|
|
|
: this()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2016-09-26 09:08:16 +00:00
|
|
|
|
Name = name;
|
|
|
|
|
|
ParentName = string.Empty;
|
|
|
|
|
|
Factory = factory;
|
2014-12-29 15:00:27 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return string.Format("Name={0}", Name);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|