tbf/TBF/Rig/TestMethods/FixedStartMassCollDeferredEval/Compound/Factory.cs

26 lines
821 B
C#
Raw Normal View History

///
/// Copyright (c) 2019 Sensus Slovensko a.s.
///
using System.Collections.Generic;
2021-10-26 09:23:57 +00:00
using TBF.Rig.Generic;
using TBF.Rig.Configs.NameOnly;
2021-10-26 09:23:57 +00:00
namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval.Compound
{
public class Factory : IComponentFactory
{
2021-10-26 09:23:57 +00:00
public string ClassName { get { return GetType().Namespace.Substring(8); } }
public IComponent DummyComponent() { return new Component(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Component(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(GetType().Namespace.Substring(20), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
}
}
}