tbf/TestBenchFramework/BenchControl/GenericDevices/ITestMethod.cs

37 lines
1020 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>
/// True = use result of the test with this method when evaluating the final result
/// </summary>
bool Evaluate(Test test);
/// <summary>
/// True = use result of the test with this method when publishing (printing, saving) results
/// </summary>
bool Publish(Test test);
/// <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>
/// <returns>Event(s) indicating the result of execution</returns>
IList<Event> Execute(Test test);
}
}