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

26 lines
876 B
C#

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