Files
tbf/TBF/Rig/TestMethods/AllyCalibration/Factory.cs
michal c71fe75446 Ally iPerl initial - reader,test method, unit test
Add AllyReader and AllyCalibration support with tests: Introduce new register readers, calibration methods, and comprehensive unit tests for integration and functionality validation. Update project files accordingly.
2026-08-18 10:01:02 +02:00

31 lines
820 B
C#

using System.Collections.Generic;
using TBF.Rig.Generic;
namespace TBF.Rig.TestMethods.AllyCalibration
{
public class Factory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(8); } }
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);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
}
}
}