Factories are without ResetStaticProperties( ).

This commit is contained in:
Milan Hanajik
2021-04-08 12:03:25 +02:00
parent 1d50b7206d
commit b5572c20e3
174 changed files with 74 additions and 437 deletions
@@ -9,18 +9,13 @@ namespace TBF.BenchControl.TestMethods.Dummy
{
public class Factory : IComponentFactory
{
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
public string ClassName { get { return GetType().Namespace.Substring(17); } }
public IComponent DummyComponent() { return new TestMethod(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig()
{
return new TestMethodCfg(this.GetType().Namespace.Substring(29), this);
}
public IComponentCfg DefaultConfig() { return new TestMethodCfg("Dummy", this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{