Adjustment component class name changed to TestMethods.Adjustment.Single

This commit is contained in:
Milan Hanajik 2016-08-22 15:57:21 +02:00
parent df7631eb3a
commit 9c0430a0d8
3 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,7 @@ namespace TBF.BenchControl
{
Factories = new List<IComponentFactory>();
Factories.Add(new TestMethods.Adjustment.TestMethodFactory());
Factories.Add(new TestMethods.Adjustment.Factory());
Factories.Add(new ResultsPrinters.Basic.PrinterFactory());
Factories.Add(new BenchInfo.Munich.ComponentFactory());
Factories.Add(new BenchInfo.Polska.ComponentFactory());

View File

@ -7,9 +7,9 @@ using TBF.BenchControl.Configs.NameOnly;
namespace TBF.BenchControl.TestMethods.Adjustment
{
public class TestMethodFactory : IComponentFactory
public class Factory : IComponentFactory
{
public string ClassName { get { return "Adjustment"; } }
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Single"; } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
@ -17,7 +17,10 @@ namespace TBF.BenchControl.TestMethods.Adjustment
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg("Adjustment", this); }
public IComponentCfg DefaultConfig()
{
return new TestMethodCfg(this.GetType().Namespace.Substring("TBF.BenchControl.TestMethods.".Length) + ".Single", this);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{

View File

@ -1017,7 +1017,7 @@
<Compile Include="BenchControl\TestBenchSim.cs" />
<Compile Include="BenchControl\TestMethods\Adjustment\AdjustmentSeq.cs" />
<Compile Include="BenchControl\TestMethods\Adjustment\TestMethod.cs" />
<Compile Include="BenchControl\TestMethods\Adjustment\TestMethodFactory.cs" />
<Compile Include="BenchControl\TestMethods\Adjustment\Factory.cs" />
<Compile Include="BenchControl\TestMethods\Adjustment\WMErrorsForm.cs">
<SubType>Form</SubType>
</Compile>