/// /// Copyright (c) 2018 Sensus Slovensko a.s. /// using System.Collections.Generic; using TBF.BenchControl.Generic; using TBF.BenchControl.Configs.NameOnly; namespace TBF.BenchControl.Various.ManualLevelMsrmnt { public class Factory : IComponentFactory { public string ClassName { get { return this.GetType().Namespace.Substring(17); } } public void ResetStaticProperties() { ManualLevelMsrmnt.ResetStaticProperties(); } public IComponent DummyComponent() { return new ManualLevelMsrmnt(); } public IComponent GetComponent(IComponentCfg cfg, IList components) { return new ManualLevelMsrmnt(cfg); } public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(25), this); } public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component) { return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this); } } }