47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
|
|
{
|
|
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public IComponent GetComponent(IList<IComponent> components) { return new TestMethod(this); }
|
|
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
|
|
|
|
/// <summary> Test parameters </summary>
|
|
[XmlIgnore]
|
|
public TestParams TestParams;
|
|
public override IParamsProvider GetTestParams() { return TestParams; }
|
|
public override IParamsProvider CreateTestParams(Entities.Test test)
|
|
{
|
|
TestParams testParams = new TestParams();
|
|
testParams.UpdateTestParams(Name, test);
|
|
return testParams;
|
|
}
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
TestMethodCfg()
|
|
{
|
|
Name = "FlyingStartCollection";
|
|
ParentName = string.Empty;
|
|
}
|
|
|
|
public TestMethodCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}", Name);
|
|
}
|
|
}
|
|
}
|