tbf/TBF/BenchControl/TestMethods/S640Communication/S640StartFactory.cs

26 lines
890 B
C#

///
/// Copyright (c) 2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.S640Communication
{
public class S640StartFactory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(17) + ".Start"; } }
public override string ToString() { return ClassName; }
public IComponent DummyComponent() { return new S640Start(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new S640Start(cfg); }
public IComponentCfg DefaultConfig() { return new S640StartCfg("S640Comm.Start", this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(S640StartCfg.Serializer, component, this);
}
}
}