tbf/TestBenchFramework/BenchControl/TestMethods/Adjustment/TestMethodFactory.cs

24 lines
675 B
C#
Raw Normal View History

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using TBF.BenchControl.Generic;
2015-01-28 17:17:50 +00:00
namespace TBF.BenchControl.TestMethods.Adjustment
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "Adjustment"; } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public IComponent DummyComponent() { return new TestMethod(); }
2015-01-28 17:17:50 +00:00
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
2015-01-28 17:17:50 +00:00
{
return ComponentCfgBase.CreateFromDbEntity(typeof(TestMethodCfg), component, this);
}
}
}