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.
31 lines
820 B
C#
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);
|
|
}
|
|
}
|
|
}
|