2015-10-05 08:11:59 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
2015-10-05 08:11:59 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2015-10-05 08:11:59 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
2016-08-15 08:13:08 +00:00
|
|
|
|
using TBF.BenchControl.Configs.NameOnly;
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
namespace TBF.BenchControl.TestMethods.FixedStartAdvanced.Single
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public class Factory : IComponentFactory
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public void ResetStaticProperties() { Component.ResetStaticProperties(); }
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public IComponent DummyComponent() { return new Component(); }
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Component(cfg); }
|
2016-08-05 12:32:36 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(29), this); }
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
|
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(TestMethodCfg), component, this);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|