2014-07-28 07:54:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2014-12-31 12:46:33 +00:00
|
|
|
|
using log4net;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using TBF.BenchControl;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
|
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
public class TestMethod : ComponentBase, GenericDevices.ITestMethod, ISequence
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(TestMethod));
|
|
|
|
|
|
public override string ToString() { return string.Format("TestMethods.CombinedWithDetection({0})", Cfg.ToString(1)); }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
readonly TestMethodCfg testMethodCfg;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public TestMethod(TestMethodCfg cfg)
|
2014-12-31 12:46:33 +00:00
|
|
|
|
: base(cfg)
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
testMethodCfg = cfg;
|
|
|
|
|
|
log.Debug(this.ToString());
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IList<Event> Execute(Entities.Test test)
|
|
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
return (new CombinedWithDetectionSeq()).Execute(test, testMethodCfg.TestParams);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|