Refactoring : TestBenchFramework --> TBF ver. 2.18.789

This commit is contained in:
Milan Hanajik
2018-01-29 09:48:01 +01:00
parent 06018303e7
commit 0d3ee53bd5
1300 changed files with 441 additions and 612 deletions
+64
View File
@@ -0,0 +1,64 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using log4net;
using System;
using System.Diagnostics;
using System.Collections.Generic;
using TBF.BenchControl;
namespace TBF.BenchControl.Operations
{
/// <summary>
/// An empty operation.
///
/// Constructors:
/// OpTemplate()
///
/// Start argument:
///
/// Events:
/// Event.None ...... operation is in progress
/// </summary>
class OpTemplate : IOperation
{
private static readonly ILog log = LogManager.GetLogger(typeof(OpTemplate));
public override string ToString() { return string.Format("OpTemplate({0})", someValue); }
/// Set by the constructor
int someValue;
/// <summary>
/// Constructor
/// </summary>
public OpTemplate(int someValue)
{
if (someValue < 0 || someValue > 5) throw new ArgumentOutOfRangeException("someValue");
this.someValue = someValue;
}
/// <summary>
/// When started
/// </summary>
public void Start()
{
}
/// <summary>
/// When running
/// </summary>
/// <returns></returns>
public Event Run()
{
/// Must return some event
return Event.None;
}
/// <summary>
/// When stopped
/// </summary>
public void Stop()
{
}
}
}