tbf/TestBenchFramework/BenchControl/GenericDevices/ITestMethod.cs

29 lines
955 B
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System.Collections.Generic;
using Config.Entities;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.GenericDevices
{
public interface ITestMethod : IComponent
{
/// <summary>
/// Check compatibility of the method with the watermeters
/// </summary>
/// <param name="meters">Type of watermeters</param>
/// <returns>true when the watermeters can be tested by this method</returns>
bool CanTest(MetersKind meters);
/// <summary>
/// Execute the test method
/// </summary>
/// <param name="test"></param>
/// <param name="outerLoopMode">false = normal eecution, true = Run the test only once and use 'outerLoopCounter'</param>
/// <param name="outerLoopCounter">External test repeats counter</param>
/// <returns>Event(s) indicating the result of execution</returns>
IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter);
}
}