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;
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.Compound
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-08-19 10:07:26 +00:00
|
|
|
|
public class TestMethodCfg : ComponentCfgBase, IComponentCfg
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(TestMethodCfg) })[0];
|
2018-05-10 11:25:46 +00:00
|
|
|
|
protected override XmlSerializer GetSerializer() { return Serializer; }
|
2017-06-21 21:39:34 +00:00
|
|
|
|
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
|
|
|
|
|
|
|
2015-01-14 04:33:51 +00:00
|
|
|
|
/// <summary> Test parameters </summary>
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public CombinedTestParams TestParams;
|
2018-05-10 11:25:46 +00:00
|
|
|
|
public override IParamsProvider GetRuntimeTestParamsProvider() { return TestParams; }
|
|
|
|
|
|
public override IParamsProvider CreateTestParamsProvider() { return new CombinedTestParams(true); }
|
2015-01-14 04:33:51 +00:00
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// 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 CombinedTestParams(true);
|
2015-01-14 04:33:51 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +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-08-17 10:24:24 +00:00
|
|
|
|
Name = name;
|
|
|
|
|
|
Factory = factory;
|
|
|
|
|
|
ParentName = string.Empty;
|
|
|
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|