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
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2015-04-15 18:32:56 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
2016-08-15 08:13:08 +00:00
|
|
|
|
using TBF.BenchControl.Configs.NameOnly;
|
2015-01-28 17:17:50 +00:00
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.TestMethods.Adjustment
|
|
|
|
|
|
{
|
2016-08-22 13:57:21 +00:00
|
|
|
|
public class Factory : IComponentFactory
|
2015-01-28 17:17:50 +00:00
|
|
|
|
{
|
2016-08-22 13:57:21 +00:00
|
|
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Single"; } }
|
2015-01-28 17:17:50 +00:00
|
|
|
|
|
|
|
|
|
|
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
|
|
|
|
|
|
|
2015-06-29 09:14:33 +00:00
|
|
|
|
public IComponent DummyComponent() { return new TestMethod(); }
|
|
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
|
|
|
|
|
|
|
2016-08-22 13:57:21 +00:00
|
|
|
|
public IComponentCfg DefaultConfig()
|
|
|
|
|
|
{
|
2016-09-26 09:08:16 +00:00
|
|
|
|
return new TestMethodCfg(this.GetType().Namespace.Substring(29) +".Single", this);
|
2016-08-22 13:57:21 +00:00
|
|
|
|
}
|
2015-01-28 17:17:50 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2015-01-28 17:17:50 +00:00
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
|
2015-01-28 17:17:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|